AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.GAx1类 参考

Describes an axis in 3D space. An axis is defined by: - its origin (also referred to as its "Location point"), and - its unit vector (referred to as its "Direction" or "main Direction"). An axis is used: - to describe 3D geometric entities (for example, the axis of a revolution entity). It serves the same purpose as the STEP function "axis placement one axis", or - to define geometric transformations (axis of symmetry, axis of rotation, and so on). For example, this entity can be used to locate a geometric entity or to define a symmetry axis. 更多...

类 AnyCAD.Foundation.GAx1 继承关系图:

Public 成员函数

 GAx1 (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 GAx1 ()
 Creates an axis object representing Z axis of the reference coordinate system.
 
 GAx1 (GPnt theP, GDir theV)
 P is the location point and V is the direction of <me>.
 
void SetDirection (GDir theV)
 Assigns V as the "Direction" of this axis.
 
void SetLocation (GPnt theP)
 Assigns P as the origin of this axis.
 
GDir Direction ()
 Returns the direction of <me>.
 
GPnt Location ()
 Returns the location point of <me>.
 
bool IsCoaxial (GAx1 Other, double AngularTolerance, double LinearTolerance)
 Returns True if : . the angle between <me> and <Other> is lower or equal to <AngularTolerance> and . the distance between <me>.Location() and <Other> is lower or equal to <LinearTolerance> and . the distance between <Other>.Location() and <me> is lower or equal to LinearTolerance.
 
bool IsNormal (GAx1 theOther, double theAngularTolerance)
 Returns True if the direction of this and another axis are normal to each other. That is, if the angle between the two axes is equal to Pi/2. Note: the tolerance criterion is given by theAngularTolerance.
 
bool IsOpposite (GAx1 theOther, double theAngularTolerance)
 Returns True if the direction of this and another axis are parallel with opposite orientation. That is, if the angle between the two axes is equal to Pi. Note: the tolerance criterion is given by theAngularTolerance.
 
bool IsParallel (GAx1 theOther, double theAngularTolerance)
 Returns True if the direction of this and another axis are parallel with same orientation or opposite orientation. That is, if the angle between the two axes is equal to 0 or Pi. Note: the tolerance criterion is given by theAngularTolerance.
 
double Angle (GAx1 theOther)
 Computes the angular value, in radians, between this.Direction() and theOther.Direction(). Returns the angle between 0 and 2*PI radians.
 
void Reverse ()
 Reverses the unit vector of this axis and assigns the result to this axis.
 
GAx1 Reversed ()
 Reverses the unit vector of this axis and creates a new one.
 
void Mirror (GPnt P)
 Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and assigns the result to this axis.
 
GAx1 Mirrored (GPnt P)
 Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and creates a new axis.
 
void Mirror (GAx1 A1)
 Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and assigns the result to this axis.
 
GAx1 Mirrored (GAx1 A1)
 Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and creates a new axis.
 
void Mirror (GAx2 A2)
 Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and assigns the result to this axis.
 
GAx1 Mirrored (GAx2 A2)
 Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and creates a new axis.
 
void Rotate (GAx1 theA1, double theAngRad)
 Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and assigns the result to this axis.
 
GAx1 Rotated (GAx1 theA1, double theAngRad)
 Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and creates a new one.
 
void Scale (GPnt theP, double theS)
 Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and assigns the result to this axis.
 
GAx1 Scaled (GPnt theP, double theS)
 Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and creates a new axis.
 
void Transform (GTrsf theT)
 Applies the transformation theT to this axis and assigns the result to this axis.
 
GAx1 Transformed (GTrsf theT)
 Applies the transformation theT to this axis and creates a new one. Translates an axis plaxement in the direction of the vector <V>. The magnitude of the translation is the vector's magnitude.
 
void Translate (GVec theV)
 Translates this axis by the vector theV, and assigns the result to this axis.
 
GAx1 Translated (GVec theV)
 Translates this axis by the vector theV, and creates a new one.
 
void Translate (GPnt theP1, GPnt theP2)
 Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and assigns the result to this axis.
 
GAx1 Translated (GPnt theP1, GPnt theP2)
 Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and creates a new one.
 
GAx1 Clone ()
 
override bool Equals (object obj)
 判断是否相等
 
override int GetHashCode ()
 返回对象的哈希值
 
override string ToString ()
 转换成字符串
 

详细描述

Describes an axis in 3D space. An axis is defined by: - its origin (also referred to as its "Location point"), and - its unit vector (referred to as its "Direction" or "main Direction"). An axis is used: - to describe 3D geometric entities (for example, the axis of a revolution entity). It serves the same purpose as the STEP function "axis placement one axis", or - to define geometric transformations (axis of symmetry, axis of rotation, and so on). For example, this entity can be used to locate a geometric entity or to define a symmetry axis.

成员函数说明

◆ Equals()

override bool AnyCAD.Foundation.GAx1.Equals ( object obj)

判断是否相等

参数
obj比较的对象
返回
true相等

◆ GetHashCode()

override int AnyCAD.Foundation.GAx1.GetHashCode ( )

返回对象的哈希值

返回
哈希值

◆ ToString()

override string AnyCAD.Foundation.GAx1.ToString ( )

转换成字符串

返回
字符串