Hide menu
Loading...
Searching...
No Matches

Defines an axis as a combination of point and direction. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Axis1d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Axis1d ()
 Constructor.
 
 Axis1d (cadex.Geom.Axis1d theOther)
 Constructor.
 
 Axis1d (cadex.Geom.Point theLocation, cadex.Geom.Direction theDir)
 Constructor.
 
cadex.Geom.Point Location ()
 Returns an origin point.
 
cadex.Geom.Direction Direction ()
 Returns a direction value.
 
bool IsCoaxial (cadex.Geom.Axis1d theOther, double theAngularTolerance, double theDistanceTolerance, bool theAllowOpposite)
 Returns true if angle between axes is less than theAngularTolerance and distances between each axis origins and another axis is less than theDistanceTolerance.
 
void Reverse ()
 
cadex.Geom.Axis1d Reversed ()
 
void Transform (cadex.Geom.Transformation theTransformation)
 
cadex.Geom.Axis1d Transformed (cadex.Geom.Transformation theTransformation)
 
void Scale (cadex.Geom.Point thePoint, double theScale)
 Sets scale to an origin point.
 
cadex.Geom.Axis1d Scaled (cadex.Geom.Point thePoint, double theScale)
 
void Mirror (cadex.Geom.Point thePoint)
 Location() = 2.0 * thePoint - Location().
 
void Mirror (cadex.Geom.Axis1d theAxis)
 
void Mirror (cadex.Geom.Axis3d theAxis)
 
cadex.Geom.Axis1d Mirrored (cadex.Geom.Point thePoint)
 
cadex.Geom.Axis1d Mirrored (cadex.Geom.Axis1d theAxis)
 
cadex.Geom.Axis1d Mirrored (cadex.Geom.Axis3d theAxis)
 
void Rotate (cadex.Geom.Axis1d theAxis, double theAngle)
 
cadex.Geom.Axis1d Rotated (cadex.Geom.Axis1d theAxis, double theAngle)
 
void Translate (cadex.Geom.Vector theVector)
 
cadex.Geom.Axis1d Translated (cadex.Geom.Vector theVector)
 

Static Public Member Functions

static cadex.Geom.Axis1d OX ()
 Returns an OX axis.
 
static cadex.Geom.Axis1d OY ()
 Returns an OY axis.
 
static cadex.Geom.Axis1d OZ ()
 Returns an OZ axis.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines an axis as a combination of point and direction.

Constructor & Destructor Documentation

◆ Axis1d() [1/3]

cadex.Geom.Axis1d.Axis1d ( )
inline

Constructor.

◆ Axis1d() [2/3]

cadex.Geom.Axis1d.Axis1d ( cadex.Geom.Axis1d theOther)
inline

Constructor.

◆ Axis1d() [3/3]

cadex.Geom.Axis1d.Axis1d ( cadex.Geom.Point theLocation,
cadex.Geom.Direction theDir )
inline

Constructor.

Member Function Documentation

◆ Direction()

cadex.Geom.Direction cadex.Geom.Axis1d.Direction ( )
inline

Returns a direction value.

◆ IsCoaxial()

bool cadex.Geom.Axis1d.IsCoaxial ( cadex.Geom.Axis1d theOther,
double theAngularTolerance,
double theDistanceTolerance,
bool theAllowOpposite )
inline

Returns true if angle between axes is less than theAngularTolerance and distances between each axis origins and another axis is less than theDistanceTolerance.

If theAllowOpposite is true then also checks if the angle is equal to PI within theAngularTolerance. Returns true if this axis is coaxial to theOther.

◆ Location()

cadex.Geom.Point cadex.Geom.Axis1d.Location ( )
inline

Returns an origin point.

◆ Mirror()

void cadex.Geom.Axis1d.Mirror ( cadex.Geom.Point thePoint)
inline

Location() = 2.0 * thePoint - Location().

Reverses directions. Mirrors an origin point.

◆ OX()

static cadex.Geom.Axis1d cadex.Geom.Axis1d.OX ( )
inlinestatic

Returns an OX axis.

◆ OY()

static cadex.Geom.Axis1d cadex.Geom.Axis1d.OY ( )
inlinestatic

Returns an OY axis.

◆ OZ()

static cadex.Geom.Axis1d cadex.Geom.Axis1d.OZ ( )
inlinestatic

Returns an OZ axis.

◆ Scale()

void cadex.Geom.Axis1d.Scale ( cadex.Geom.Point thePoint,
double theScale )
inline

Sets scale to an origin point.