AnyCAD Rapid API 2024
Help you to create a better world!

Public 成员函数  
GAx22d ()  
GAx22d (GPnt2d theP, GDir2d theVx, GDir2d theVy)  
GAx22d (GPnt2d theP, GDir2d theV, boolean theIsSense)  
GAx22d (GPnt2d theP, GDir2d theV)  
GAx22d (GAx2d theA, boolean theIsSense)  
GAx22d (GAx2d theA)  
void  SetAxis (GAx22d theA1) 
void  SetXAxis (GAx2d theA1) 
void  SetYAxis (GAx2d theA1) 
void  SetLocation (GPnt2d theP) 
void  SetXDirection (GDir2d theVx) 
void  SetYDirection (GDir2d theVy) 
GAx2d  XAxis () 
GAx2d  YAxis () 
GPnt2d  Location () 
GDir2d  XDirection () 
GDir2d  YDirection () 
void  Mirror (GPnt2d theP) 
GAx22d  Mirrored (GPnt2d theP) 
void  Mirror (GAx2d theA) 
GAx22d  Mirrored (GAx2d theA) 
void  Rotate (GPnt2d theP, double theAng) 
GAx22d  Rotated (GPnt2d theP, double theAng) 
void  Scale (GPnt2d theP, double theS) 
GAx22d  Scaled (GPnt2d theP, double theS) 
void  Transform (GTrsf2d theT) 
GAx22d  Transformed (GTrsf2d theT) 
void  Translate (GVec2d theV) 
GAx22d  Translated (GVec2d theV) 
void  Translate (GPnt2d theP1, GPnt2d theP2) 
GAx22d  Translated (GPnt2d theP1, GPnt2d 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 righthanded ("direct sense") or lefthanded ("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.
GAx22d.GAx22d  (  ) 
Creates an object representing the reference coordinate system (OXY).
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).
Creates  a coordinate system with origin theP and "X Direction" theV, which is:  righthanded if theIsSense is true (default value), or  lefthanded if theIsSense is false
Creates  a coordinate system with origin theP and "X Direction" theV, which is:  righthanded if theIsSense is true (default value), or  lefthanded if theIsSense is false
GAx22d.GAx22d  (  GAx2d  theA, 
boolean  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:  righthanded if theIsSense is true (default value), or  lefthanded if theIsSense is false.
GAx22d.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:  righthanded if theIsSense is true (default value), or  lefthanded if theIsSense is false.
GPnt2d GAx22d.Location  (  ) 
Returns the "Location" point (origin) of <me>.
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.
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.
Rotates an axis placement. <theA1> is the axis of the rotation . theAng is the angular value of the rotation in radians.
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 GAx22d.SetAxis  (  GAx22d  theA1  ) 
Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system.
void GAx22d.SetLocation  (  GPnt2d  theP  ) 
Changes the "Location" point (origin) of <me>.
void GAx22d.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 GAx22d.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 (righthanded or lefthanded) of this coordinate system.
void GAx22d.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 GAx22d.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 (righthanded or lefthanded) of this coordinate system.
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.
Translates an axis placement from the point <theP1> to the point <theP2>.
Translates an axis plaxement in the direction of the vector <theV>. The magnitude of the translation is the vector's magnitude.
GAx2d GAx22d.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.
GDir2d GAx22d.XDirection  (  ) 
Returns the "XDirection" of <me>.
GAx2d GAx22d.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.
GDir2d GAx22d.YDirection  (  ) 
Returns the "YDirection" of <me>.