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

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 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.

构造及析构函数说明

◆ GAx22d() [1/6]

GAx22d.GAx22d ( )

Creates an object representing the reference coordinate system (OXY).

◆ GAx22d() [2/6]

GAx22d.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() [3/6]

GAx22d.GAx22d ( GPnt2d  theP,
GDir2d  theV,
boolean  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() [4/6]

GAx22d.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() [5/6]

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: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false.

◆ GAx22d() [6/6]

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: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false.

成员函数说明

◆ Location()

GPnt2d GAx22d.Location ( )

Returns the "Location" point (origin) of <me>.

◆ Mirrored() [1/2]

GAx22d 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.

◆ Mirrored() [2/2]

GAx22d 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.

◆ Rotated()

GAx22d 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.

◆ Scaled()

GAx22d 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.

◆ SetAxis()

void GAx22d.SetAxis ( GAx22d  theA1)

Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system.

◆ SetLocation()

void GAx22d.SetLocation ( GPnt2d  theP)

Changes the "Location" point (origin) of <me>.

◆ SetXAxis()

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.

◆ SetXDirection()

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 (right-handed or left-handed) of this coordinate system.

◆ SetYAxis()

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.

◆ SetYDirection()

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 (right-handed or left-handed) of this coordinate system.

◆ Transformed()

GAx22d 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.

◆ Translated() [1/2]

GAx22d GAx22d.Translated ( GPnt2d  theP1,
GPnt2d  theP2 
)

Translates an axis placement from the point <theP1> to the point <theP2>.

◆ Translated() [2/2]

GAx22d 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.

◆ XAxis()

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.

◆ XDirection()

GDir2d GAx22d.XDirection ( )

Returns the "XDirection" of <me>.

◆ YAxis()

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.

◆ YDirection()

GDir2d GAx22d.YDirection ( )

Returns the "YDirection" of <me>.