![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Describes a coordinate system in a plane (2D space). A coordinate system is defined by: More...
#include <gp_Ax22d.hxx>
Public Member Functions | |
| constexpr | gp_Ax22d () noexcept |
| Creates an object representing the reference coordinate system (OXY). | |
| constexpr | gp_Ax22d (const gp_Pnt2d &theP, const gp_Dir2d &theVx, const gp_Dir2d &theVy) |
| Creates a coordinate system with origin theP and where: | |
| constexpr | gp_Ax22d (const gp_Pnt2d &theP, const gp_Dir2d &theV, const bool theIsSense=true) |
| Creates a coordinate system with origin theP and "X Direction" theV, which is: | |
| constexpr | gp_Ax22d (const gp_Ax2d &theA, const bool theIsSense=true) |
| Creates a coordinate system where its origin is the origin of theA and its "X Direction" is the unit vector of theA, which is: | |
| constexpr void | SetAxis (const gp_Ax22d &theA1) noexcept |
| Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system. | |
| constexpr void | SetXAxis (const gp_Ax2d &theA1) |
| Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "YDirection" is recomputed in the same sense as before. | |
| constexpr void | SetYAxis (const gp_Ax2d &theA1) |
| Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "XDirection" is recomputed in the same sense as before. | |
| constexpr void | SetLocation (const gp_Pnt2d &theP) noexcept |
| Changes the "Location" point (origin) of <me>. | |
| constexpr void | SetXDirection (const gp_Dir2d &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. | |
| constexpr void | SetYDirection (const gp_Dir2d &theVy) |
| Assigns 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. | |
| gp_Ax2d | XAxis () const |
| Returns an axis, for which. | |
| gp_Ax2d | YAxis () const |
| Returns an axis, for which. | |
| constexpr const gp_Pnt2d & | Location () const noexcept |
| Returns the "Location" point (origin) of <me>. | |
| constexpr const gp_Dir2d & | XDirection () const noexcept |
| Returns the "XDirection" of <me>. | |
| constexpr const gp_Dir2d & | YDirection () const noexcept |
| Returns the "YDirection" of <me>. | |
| void | Mirror (const gp_Pnt2d &theP) noexcept |
| gp_Ax22d | Mirrored (const gp_Pnt2d &theP) const noexcept |
| 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 (const gp_Ax2d &theA) noexcept |
| gp_Ax22d | Mirrored (const gp_Ax2d &theA) const noexcept |
| 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 (const gp_Pnt2d &theP, const double theAng) |
| gp_Ax22d | Rotated (const gp_Pnt2d &theP, const double theAng) const |
| Rotates an axis placement. <theA1> is the axis of the rotation. theAng is the angular value of the rotation in radians. | |
| void | Scale (const gp_Pnt2d &theP, const double theS) |
| gp_Ax22d | Scaled (const gp_Pnt2d &theP, const double theS) const |
| 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 (const gp_Trsf2d &theT) noexcept |
| gp_Ax22d | Transformed (const gp_Trsf2d &theT) const |
| 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. | |
| constexpr void | Translate (const gp_Vec2d &theV) noexcept |
| constexpr gp_Ax22d | Translated (const gp_Vec2d &theV) const noexcept |
| Translates an axis plaxement in the direction of the vector <theV>. The magnitude of the translation is the vector's magnitude. | |
| constexpr void | Translate (const gp_Pnt2d &theP1, const gp_Pnt2d &theP2) noexcept |
| constexpr gp_Ax22d | Translated (const gp_Pnt2d &theP1, const gp_Pnt2d &theP2) const noexcept |
| Translates an axis placement from the point <theP1> to the point <theP2>. | |
| void | DumpJson (Standard_OStream &theOStream, int theDepth=-1) const |
| Dumps the content of me into the stream. | |
Describes a coordinate system in a plane (2D space). A coordinate system is defined by:
|
inlineconstexprnoexcept |
Creates an object representing the reference coordinate system (OXY).
|
inlineconstexpr |
Creates a coordinate system with origin theP and where:
|
inlineconstexpr |
Creates a coordinate system with origin theP and "X Direction" theV, which is:
Creates a coordinate system where its origin is the origin of theA and its "X Direction" is the unit vector of theA, which is:
| void gp_Ax22d::DumpJson | ( | Standard_OStream & | theOStream, |
| int | theDepth = -1 ) const |
Dumps the content of me into the stream.
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.
Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system.
Changes the "Location" point (origin) of <me>.
Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "YDirection" is recomputed in the same sense as before.
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.
Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "XDirection" is recomputed in the same sense as before.
Assigns 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.
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.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
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.
|
inline |
Returns an axis, for which.
Returns the "XDirection" of <me>.
|
inline |
Returns an axis, for which.
Returns the "YDirection" of <me>.