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 this axis is coaxial to theOther.
 
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 Point)
 
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/2]

cadex.Geom.Axis1d.Axis1d ( )
inline

Constructor.

Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).

◆ Axis1d() [2/2]

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

Constructor.

Creates an axis from origin point and direction.

Member Function Documentation

◆ Direction()

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

Returns a direction value.

Returns the value specified in the constructor.

◆ IsCoaxial()

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

Returns true if this axis is coaxial to theOther.

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.

◆ Location()

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

Returns an origin point.

Returns the value specified in the constructor.

◆ OX()

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

Returns an OX axis.

Creates an axis from point (0., 0., 0.) and direction (1., 0., 0.).

◆ OY()

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

Returns an OY axis.

Creates an axis from point (0., 0., 0.) and direction (0., 1., 0.).

◆ OZ()

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

Returns an OZ axis.

Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).

◆ Scale()

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

Sets scale to an origin point.

If scale is less than zero than a direction value will be reversed.