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

Describes a coordinate system in a plane (2D space). A coordinate system is defined by: - its origin (also referred to as its "Location point"), and - two orthogonal unit vectors, respectively, called the "X Direction" and the "Y Direction". A gp_Ax22d may be right-handed ("direct sense") or left-handed ("inverse" or "indirect sense"). You use a gp_Ax22d to: - describe 2D geometric entities, in particular to position them. The local coordinate system of a geometric entity serves for the same purpose as the STEP function "axis placement two axes", or - define geometric transformations. Note: we refer to the "X Axis" and "Y Axis" as the axes having: - the origin of the coordinate system as their origin, and - the unit vectors "X Direction" and "Y Direction", respectively, as their unit vectors. 更多...

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

Public 成员函数

 GAx22d (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 GAx22d ()
 Creates an object representing the reference coordinate system (OXY).
 
 GAx22d (GPnt2d theP, GDir2d theVx, GDir2d theVy)
 Creates a coordinate system with origin theP and where: - theVx is the "X Direction", and - the "Y Direction" is orthogonal to theVx and oriented so that the cross products theVx^"Y Direction" and theVx^theVy have the same sign. Raises ConstructionError if theVx and theVy are parallel (same or opposite orientation).
 
 GAx22d (GPnt2d theP, GDir2d theV, bool theIsSense)
 Creates - a coordinate system with origin theP and "X Direction" theV, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false
 
 GAx22d (GPnt2d theP, GDir2d theV)
 Creates - a coordinate system with origin theP and "X Direction" theV, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false
 
 GAx22d (GAx2d theA, bool theIsSense)
 Creates - a coordinate system where its origin is the origin of theA and its "X Direction" is the unit vector of theA, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false.
 
 GAx22d (GAx2d theA)
 Creates - a coordinate system where its origin is the origin of theA and its "X Direction" is the unit vector of theA, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false.
 
void SetAxis (GAx22d theA1)
 Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system.
 
void SetXAxis (GAx2d theA1)
 Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "YDirection" is recomputed in the same sense as before.
 
void SetYAxis (GAx2d theA1)
 Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "XDirection" is recomputed in the same sense as before.
 
void SetLocation (GPnt2d theP)
 Changes the "Location" point (origin) of <me>.
 
void SetXDirection (GDir2d theVx)
 Assigns theVx to the "X Direction" of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to theVx , without modifying the orientation (right-handed or left-handed) of this coordinate system.
 
void SetYDirection (GDir2d theVy)
 Assignsr theVy to the "Y Direction" of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to theVy, without modifying the orientation (right-handed or left-handed) of this coordinate system.
 
GAx2d XAxis ()
 Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the "X Direction" of this coordinate system. Note: the result is the "X Axis" of this coordinate system.
 
GAx2d YAxis ()
 Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the "Y Direction" of this coordinate system. Note: the result is the "Y Axis" of this coordinate system.
 
GPnt2d Location ()
 Returns the "Location" point (origin) of <me>.
 
GDir2d XDirection ()
 Returns the "XDirection" of <me>.
 
GDir2d YDirection ()
 Returns the "YDirection" of <me>.
 
void Mirror (GPnt2d theP)
 
GAx22d Mirrored (GPnt2d theP)
 Performs the symmetrical transformation of an axis placement with respect to the point theP which is the center of the symmetry. Warnings : The main direction of the axis placement is not changed. The "XDirection" and the "YDirection" are reversed. So the axis placement stay right handed.
 
void Mirror (GAx2d theA)
 
GAx22d Mirrored (GAx2d theA)
 Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry. The transformation is performed on the "Location" point, on the "XDirection" and "YDirection". The resulting main "Direction" is the cross product between the "XDirection" and the "YDirection" after transformation.
 
void Rotate (GPnt2d theP, double theAng)
 
GAx22d Rotated (GPnt2d theP, double theAng)
 Rotates an axis placement. <theA1> is the axis of the rotation . theAng is the angular value of the rotation in radians.
 
void Scale (GPnt2d theP, double theS)
 
GAx22d Scaled (GPnt2d theP, double theS)
 Applies a scaling transformation on the axis placement. The "Location" point of the axisplacement is modified. Warnings : If the scale <theS> is negative : . the main direction of the axis placement is not changed. . The "XDirection" and the "YDirection" are reversed. So the axis placement stay right handed.
 
void Transform (GTrsf2d theT)
 
GAx22d Transformed (GTrsf2d theT)
 Transforms an axis placement with a Trsf. The "Location" point, the "XDirection" and the "YDirection" are transformed with theT. The resulting main "Direction" of <me> is the cross product between the "XDirection" and the "YDirection" after transformation.
 
void Translate (GVec2d theV)
 
GAx22d Translated (GVec2d theV)
 Translates an axis plaxement in the direction of the vector <theV>. The magnitude of the translation is the vector's magnitude.
 
void Translate (GPnt2d theP1, GPnt2d theP2)
 
GAx22d Translated (GPnt2d theP1, GPnt2d theP2)
 Translates an axis placement from the point <theP1> to the point <theP2>.
 

详细描述

Describes a coordinate system in a plane (2D space). A coordinate system is defined by: - its origin (also referred to as its "Location point"), and - two orthogonal unit vectors, respectively, called the "X Direction" and the "Y Direction". A gp_Ax22d may be right-handed ("direct sense") or left-handed ("inverse" or "indirect sense"). You use a gp_Ax22d to: - describe 2D geometric entities, in particular to position them. The local coordinate system of a geometric entity serves for the same purpose as the STEP function "axis placement two axes", or - define geometric transformations. Note: we refer to the "X Axis" and "Y Axis" as the axes having: - the origin of the coordinate system as their origin, and - the unit vectors "X Direction" and "Y Direction", respectively, as their unit vectors.