mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0030448: Coding - add typo detection to derivation creation methods using Standard_NODISCARD attribute
Added macro Standard_NODISCARD equivalent to C++17 attribute [[nodiscard]] for compilers that support this. Using Standard_NODISCARD macro for methods that create new object in gp, math, Geom, Bnd packages. Marked equivalent operators with Standard_NODISCARD, if they are defined close to relevant methods. Corrected code where warnings on unused result of calls to methods creating new objects are generated. In most cases it looks like spelling errors (e.g. Normalised() instead of Normalise())
This commit is contained in:
@@ -112,7 +112,7 @@ public:
|
||||
void Reverse();
|
||||
|
||||
//! Reverses the unit vector of this axis and creates a new one.
|
||||
gp_Ax1 Reversed() const;
|
||||
Standard_NODISCARD gp_Ax1 Reversed() const;
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an axis
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
//! 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.
|
||||
Standard_EXPORT gp_Ax1 Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax1 Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an axis
|
||||
@@ -135,7 +135,7 @@ public:
|
||||
//! 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.
|
||||
Standard_EXPORT gp_Ax1 Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax1 Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an axis
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
//! placement with respect to a plane. The axis placement
|
||||
//! <A2> locates the plane of the symmetry :
|
||||
//! (Location, XDirection, YDirection) and creates a new axis.
|
||||
Standard_EXPORT gp_Ax1 Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax1 Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
//! Rotates this axis at an angle Ang (in radians) about the axis A1
|
||||
//! and assigns the result to this axis.
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
|
||||
//! Rotates this axis at an angle Ang (in radians) about the axis A1
|
||||
//! and creates a new one.
|
||||
gp_Ax1 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Ax1 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
|
||||
//! Applies a scaling transformation to this axis with:
|
||||
@@ -169,7 +169,7 @@ public:
|
||||
//! Applies a scaling transformation to this axis with:
|
||||
//! - scale factor S, and
|
||||
//! - center P and creates a new axis.
|
||||
gp_Ax1 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Ax1 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
//! Applies the transformation T to this axis.
|
||||
//! and assigns the result to this axis.
|
||||
@@ -180,7 +180,7 @@ public:
|
||||
//!
|
||||
//! Translates an axis plaxement in the direction of the vector
|
||||
//! <V>. The magnitude of the translation is the vector's magnitude.
|
||||
gp_Ax1 Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Ax1 Transformed (const gp_Trsf& T) const;
|
||||
|
||||
|
||||
//! Translates this axis by the vector V,
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
|
||||
//! Translates this axis by the vector V,
|
||||
//! and creates a new one.
|
||||
gp_Ax1 Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Ax1 Translated (const gp_Vec& V) const;
|
||||
|
||||
|
||||
//! Translates this axis by:
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
//! Translates this axis by:
|
||||
//! the vector (P1, P2) defined from point P1 to point P2.
|
||||
//! and creates a new one.
|
||||
gp_Ax1 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Ax1 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -202,7 +202,7 @@ public:
|
||||
//! product "X Direction" ^ "Y Direction".
|
||||
//! This maintains the right-handed property of the
|
||||
//! coordinate system.
|
||||
Standard_EXPORT gp_Ax2 Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax2 Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
|
||||
//! Performs a symmetrical transformation of this coordinate
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
//! product "X Direction" ^ "Y Direction".
|
||||
//! This maintains the right-handed property of the
|
||||
//! coordinate system.
|
||||
Standard_EXPORT gp_Ax2 Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax2 Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
|
||||
//! Performs a symmetrical transformation of this coordinate
|
||||
@@ -276,7 +276,7 @@ public:
|
||||
//! product "X Direction" ^ "Y Direction".
|
||||
//! This maintains the right-handed property of the
|
||||
//! coordinate system.
|
||||
Standard_EXPORT gp_Ax2 Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax2 Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
//! Rotates an axis placement. <A1> is the axis of the
|
||||
//! rotation . Ang is the angular value of the rotation
|
||||
//! in radians.
|
||||
gp_Ax2 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Ax2 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
@@ -296,7 +296,7 @@ public:
|
||||
//! . the main direction of the axis placement is not changed.
|
||||
//! . The "XDirection" and the "YDirection" are reversed.
|
||||
//! So the axis placement stay right handed.
|
||||
gp_Ax2 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Ax2 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
@@ -306,21 +306,21 @@ public:
|
||||
//! "YDirection" are transformed with T. The resulting
|
||||
//! main "Direction" of <me> is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
gp_Ax2 Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Ax2 Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates an axis plaxement in the direction of the vector
|
||||
//! <V>. The magnitude of the translation is the vector's magnitude.
|
||||
gp_Ax2 Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Ax2 Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates an axis placement from the point <P1> to the
|
||||
//! point <P2>.
|
||||
gp_Ax2 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Ax2 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -152,7 +152,7 @@ public:
|
||||
//! The main direction of the axis placement is not changed.
|
||||
//! The "XDirection" and the "YDirection" are reversed.
|
||||
//! So the axis placement stay right handed.
|
||||
Standard_EXPORT gp_Ax22d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax22d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
@@ -164,7 +164,7 @@ public:
|
||||
//! point, on the "XDirection" and "YDirection".
|
||||
//! The resulting main "Direction" is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
Standard_EXPORT gp_Ax22d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax22d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
//! Rotates an axis placement. <A1> is the axis of the
|
||||
//! rotation . Ang is the angular value of the rotation
|
||||
//! in radians.
|
||||
gp_Ax22d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Ax22d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
//! . the main direction of the axis placement is not changed.
|
||||
//! . The "XDirection" and the "YDirection" are reversed.
|
||||
//! So the axis placement stay right handed.
|
||||
gp_Ax22d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Ax22d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
@@ -194,21 +194,21 @@ public:
|
||||
//! "YDirection" are transformed with T. The resulting
|
||||
//! main "Direction" of <me> is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
gp_Ax22d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Ax22d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates an axis plaxement in the direction of the vector
|
||||
//! <V>. The magnitude of the translation is the vector's magnitude.
|
||||
gp_Ax22d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Ax22d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates an axis placement from the point <P1> to the
|
||||
//! point <P2>.
|
||||
gp_Ax22d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Ax22d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -115,7 +115,7 @@ public:
|
||||
|
||||
//! Computes a new axis placement with a direction opposite to
|
||||
//! the direction of <me>.
|
||||
gp_Ax2d Reversed() const;
|
||||
Standard_NODISCARD gp_Ax2d Reversed() const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Pnt2d& P);
|
||||
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
//! Performs the symmetrical transformation of an axis
|
||||
//! placement with respect to the point P which is the
|
||||
//! center of the symmetry.
|
||||
Standard_EXPORT gp_Ax2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
//! Performs the symmetrical transformation of an axis
|
||||
//! placement with respect to an axis placement which
|
||||
//! is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Ax2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
//! Rotates an axis placement. <P> is the center of the
|
||||
//! rotation . Ang is the angular value of the rotation
|
||||
//! in radians.
|
||||
gp_Ax2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Ax2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
Standard_EXPORT void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
@@ -147,26 +147,26 @@ public:
|
||||
//! Applies a scaling transformation on the axis placement.
|
||||
//! The "Location" point of the axisplacement is modified.
|
||||
//! The "Direction" is reversed if the scale is negative.
|
||||
gp_Ax2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Ax2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
//! Transforms an axis placement with a Trsf.
|
||||
gp_Ax2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Ax2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates an axis placement in the direction of the vector
|
||||
//! <V>. The magnitude of the translation is the vector's magnitude.
|
||||
gp_Ax2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Ax2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates an axis placement from the point <P1> to the
|
||||
//! point <P2>.
|
||||
gp_Ax2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Ax2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -218,7 +218,7 @@ public:
|
||||
//! The main direction of the axis placement is not changed.
|
||||
//! The "XDirection" and the "YDirection" are reversed.
|
||||
//! So the axis placement stay right handed.
|
||||
Standard_EXPORT gp_Ax3 Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax3 Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -230,7 +230,7 @@ public:
|
||||
//! point, on the "XDirection" and "YDirection".
|
||||
//! The resulting main "Direction" is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
Standard_EXPORT gp_Ax3 Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax3 Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -243,7 +243,7 @@ public:
|
||||
//! point, on the "XDirection" and "YDirection".
|
||||
//! The resulting main "Direction" is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
Standard_EXPORT gp_Ax3 Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Ax3 Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
@@ -251,7 +251,7 @@ public:
|
||||
//! Rotates an axis placement. <A1> is the axis of the
|
||||
//! rotation . Ang is the angular value of the rotation
|
||||
//! in radians.
|
||||
gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
//! . the main direction of the axis placement is not changed.
|
||||
//! . The "XDirection" and the "YDirection" are reversed.
|
||||
//! So the axis placement stay right handed.
|
||||
gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
@@ -273,21 +273,21 @@ public:
|
||||
//! "YDirection" are transformed with T. The resulting
|
||||
//! main "Direction" of <me> is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
gp_Ax3 Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Ax3 Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates an axis plaxement in the direction of the vector
|
||||
//! <V>. The magnitude of the translation is the vector's magnitude.
|
||||
gp_Ax3 Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Ax3 Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates an axis placement from the point <P1> to the
|
||||
//! point <P2>.
|
||||
gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -153,7 +153,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a circle
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Circ Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Circ Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -161,7 +161,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a circle with
|
||||
//! respect to an axis placement which is the axis of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Circ Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Circ Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -169,14 +169,14 @@ public:
|
||||
//! Performs the symmetrical transformation of a circle with respect
|
||||
//! to a plane. The axis placement A2 locates the plane of the
|
||||
//! of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Circ Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Circ Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a circle. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Circ Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Circ Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
@@ -186,26 +186,26 @@ public:
|
||||
//! If S is negative the radius stay positive but
|
||||
//! the "XAxis" and the "YAxis" are reversed as for
|
||||
//! an ellipse.
|
||||
gp_Circ Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Circ Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a circle with the transformation T from class Trsf.
|
||||
gp_Circ Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Circ Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a circle in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Circ Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Circ Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a circle from the point P1 to the point P2.
|
||||
gp_Circ Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Circ Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -156,7 +156,7 @@ public:
|
||||
//! of this circle (the "Y Direction" is reversed) and therefore
|
||||
//! changes the implicit orientation of this circle.
|
||||
//! Reversed creates a new circle.
|
||||
gp_Circ2d Reversed() const;
|
||||
Standard_NODISCARD gp_Circ2d Reversed() const;
|
||||
|
||||
//! Returns true if the local coordinate system is direct
|
||||
//! and false in the other case.
|
||||
@@ -167,21 +167,21 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of a circle with respect
|
||||
//! to the point P which is the center of the symmetry
|
||||
Standard_EXPORT gp_Circ2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Circ2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of a circle with respect
|
||||
//! to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Circ2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Circ2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a circle. P is the center of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Circ2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Circ2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
@@ -191,26 +191,26 @@ public:
|
||||
//! If S is negative the radius stay positive but
|
||||
//! the "XAxis" and the "YAxis" are reversed as for
|
||||
//! an ellipse.
|
||||
gp_Circ2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Circ2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Transforms a circle with the transformation T from class Trsf2d.
|
||||
gp_Circ2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Circ2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates a circle in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Circ2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Circ2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates a circle from the point P1 to the point P2.
|
||||
gp_Circ2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Circ2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -163,7 +163,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a cone
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Cone Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cone Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a cone with
|
||||
//! respect to an axis placement which is the axis of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Cone Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cone Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -179,40 +179,40 @@ public:
|
||||
//! Performs the symmetrical transformation of a cone with respect
|
||||
//! to a plane. The axis placement A2 locates the plane of the
|
||||
//! of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Cone Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cone Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a cone. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Cone Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Cone Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a cone. S is the scaling value.
|
||||
//! The absolute value of S is used to scale the cone
|
||||
gp_Cone Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Cone Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a cone with the transformation T from class Trsf.
|
||||
gp_Cone Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Cone Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a cone in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Cone Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Cone Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a cone from the point P1 to the point P2.
|
||||
gp_Cone Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Cone Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -125,7 +125,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a cylinder
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Cylinder Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cylinder Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -133,7 +133,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a cylinder with
|
||||
//! respect to an axis placement which is the axis of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Cylinder Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cylinder Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -141,40 +141,40 @@ public:
|
||||
//! Performs the symmetrical transformation of a cylinder with respect
|
||||
//! to a plane. The axis placement A2 locates the plane of the
|
||||
//! of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Cylinder Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Cylinder Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a cylinder. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Cylinder Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Cylinder Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a cylinder. S is the scaling value.
|
||||
//! The absolute value of S is used to scale the cylinder
|
||||
gp_Cylinder Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Cylinder Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a cylinder with the transformation T from class Trsf.
|
||||
gp_Cylinder Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Cylinder Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a cylinder in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Cylinder Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Cylinder Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a cylinder from the point P1 to the point P2.
|
||||
gp_Cylinder Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Cylinder Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -176,8 +176,8 @@ public:
|
||||
//! Raises the exception ConstructionError if V1 and V2 are parallel
|
||||
//! or <me> and (V1^V2) are parallel because the computed vector
|
||||
//! can't be normalized to create a direction.
|
||||
gp_Dir Crossed (const gp_Dir& Right) const;
|
||||
gp_Dir operator ^ (const gp_Dir& Right) const
|
||||
Standard_NODISCARD gp_Dir Crossed (const gp_Dir& Right) const;
|
||||
Standard_NODISCARD gp_Dir operator ^ (const gp_Dir& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
//! - this unit vector and (V1 ^ V2) are parallel.
|
||||
//! This is because, in these conditions, the computed vector
|
||||
//! is null and cannot be normalized.
|
||||
gp_Dir CrossCrossed (const gp_Dir& V1, const gp_Dir& V2) const;
|
||||
Standard_NODISCARD gp_Dir CrossCrossed (const gp_Dir& V1, const gp_Dir& V2) const;
|
||||
|
||||
//! Computes the scalar product
|
||||
Standard_Real Dot (const gp_Dir& Other) const;
|
||||
@@ -216,8 +216,8 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to the direction V which is the center of
|
||||
//! the symmetry.]
|
||||
gp_Dir Reversed() const;
|
||||
gp_Dir operator -() const
|
||||
Standard_NODISCARD gp_Dir Reversed() const;
|
||||
Standard_NODISCARD gp_Dir operator -() const
|
||||
{
|
||||
return Reversed();
|
||||
}
|
||||
@@ -228,7 +228,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to the direction V which is the center of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Dir Mirrored (const gp_Dir& V) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Dir Mirrored (const gp_Dir& V) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -236,7 +236,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Dir Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Dir Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -244,14 +244,14 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to a plane. The axis placement A2 locates
|
||||
//! the plane of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Dir Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Dir Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a direction. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Dir Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Dir Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
Standard_EXPORT void Transform (const gp_Trsf& T);
|
||||
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
//! Warnings :
|
||||
//! If the scale factor of the "Trsf" T is negative then the
|
||||
//! direction <me> is reversed.
|
||||
gp_Dir Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Dir Transformed (const gp_Trsf& T) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -195,8 +195,8 @@ public:
|
||||
|
||||
|
||||
//! Computes the cross product between two directions.
|
||||
Standard_Real Crossed (const gp_Dir2d& Right) const;
|
||||
Standard_Real operator ^ (const gp_Dir2d& Right) const
|
||||
Standard_NODISCARD Standard_Real Crossed (const gp_Dir2d& Right) const;
|
||||
Standard_NODISCARD Standard_Real operator ^ (const gp_Dir2d& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -211,8 +211,8 @@ public:
|
||||
void Reverse();
|
||||
|
||||
//! Reverses the orientation of a direction
|
||||
gp_Dir2d Reversed() const;
|
||||
gp_Dir2d operator -() const
|
||||
Standard_NODISCARD gp_Dir2d Reversed() const;
|
||||
Standard_NODISCARD gp_Dir2d operator -() const
|
||||
{
|
||||
return Reversed();
|
||||
}
|
||||
@@ -223,7 +223,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to the direction V which is the center of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Dir2d Mirrored (const gp_Dir2d& V) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Dir2d Mirrored (const gp_Dir2d& V) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
@@ -231,14 +231,14 @@ public:
|
||||
//! Performs the symmetrical transformation of a direction
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Dir2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Dir2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a direction. Ang is the angular value of
|
||||
//! the rotation in radians.
|
||||
gp_Dir2d Rotated (const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Dir2d Rotated (const Standard_Real Ang) const;
|
||||
|
||||
Standard_EXPORT void Transform (const gp_Trsf2d& T);
|
||||
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
//! Warnings :
|
||||
//! If the scale factor of the "Trsf" T is negative then the
|
||||
//! direction <me> is reversed.
|
||||
gp_Dir2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Dir2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -198,14 +198,14 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of an ellipse with
|
||||
//! respect to the point P which is the center of the symmetry.
|
||||
Standard_EXPORT gp_Elips Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Elips Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an ellipse with
|
||||
//! respect to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Elips Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Elips Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -213,39 +213,39 @@ public:
|
||||
//! Performs the symmetrical transformation of an ellipse with
|
||||
//! respect to a plane. The axis placement A2 locates the plane
|
||||
//! of the symmetry (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Elips Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Elips Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates an ellipse. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Elips Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Elips Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales an ellipse. S is the scaling value.
|
||||
gp_Elips Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Elips Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms an ellipse with the transformation T from class Trsf.
|
||||
gp_Elips Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Elips Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates an ellipse in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Elips Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Elips Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates an ellipse from the point P1 to the point P2.
|
||||
gp_Elips Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Elips Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -197,7 +197,7 @@ public:
|
||||
|
||||
void Reverse();
|
||||
|
||||
gp_Elips2d Reversed() const;
|
||||
Standard_NODISCARD gp_Elips2d Reversed() const;
|
||||
|
||||
//! Returns true if the local coordinate system is direct
|
||||
//! and false in the other case.
|
||||
@@ -208,43 +208,43 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of a ellipse with respect
|
||||
//! to the point P which is the center of the symmetry
|
||||
Standard_EXPORT gp_Elips2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Elips2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of a ellipse with respect
|
||||
//! to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Elips2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Elips2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a ellipse. S is the scaling value.
|
||||
gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Transforms an ellipse with the transformation T from class Trsf2d.
|
||||
gp_Elips2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Elips2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates a ellipse in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Elips2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Elips2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates a ellipse from the point P1 to the point P2.
|
||||
gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -182,7 +182,7 @@ public:
|
||||
//! Computes the reverse transformation.
|
||||
//! Raises an exception if the matrix of the transformation
|
||||
//! is not inversible.
|
||||
gp_GTrsf Inverted() const;
|
||||
Standard_NODISCARD gp_GTrsf Inverted() const;
|
||||
|
||||
|
||||
//! Computes the transformation composed from T and <me>.
|
||||
@@ -198,8 +198,8 @@ public:
|
||||
//! XYZ P2(P);
|
||||
//! T1.Transforms(P2); //using T1 then T2
|
||||
//! T2.Transforms(P2); // P1 = P2 !!!
|
||||
gp_GTrsf Multiplied (const gp_GTrsf& T) const;
|
||||
gp_GTrsf operator * (const gp_GTrsf& T) const
|
||||
Standard_NODISCARD gp_GTrsf Multiplied (const gp_GTrsf& T) const;
|
||||
Standard_NODISCARD gp_GTrsf operator * (const gp_GTrsf& T) const
|
||||
{
|
||||
return Multiplied(T);
|
||||
}
|
||||
@@ -235,7 +235,7 @@ public:
|
||||
//!
|
||||
//! Raises an exception if N < 0 and if the matrix of the
|
||||
//! transformation not inversible.
|
||||
gp_GTrsf Powered (const Standard_Integer N) const;
|
||||
Standard_NODISCARD gp_GTrsf Powered (const Standard_Integer N) const;
|
||||
|
||||
void Transforms (gp_XYZ& Coord) const;
|
||||
|
||||
|
@@ -156,7 +156,7 @@ public:
|
||||
//! Computes the reverse transformation.
|
||||
//! Raised an exception if the matrix of the transformation
|
||||
//! is not inversible.
|
||||
gp_GTrsf2d Inverted() const;
|
||||
Standard_NODISCARD gp_GTrsf2d Inverted() const;
|
||||
|
||||
|
||||
//! Computes the transformation composed with T and <me>.
|
||||
@@ -172,8 +172,8 @@ public:
|
||||
//! XY P2(P);
|
||||
//! T1.Transforms(P2); //using T1 then T2
|
||||
//! T2.Transforms(P2); // P1 = P2 !!!
|
||||
gp_GTrsf2d Multiplied (const gp_GTrsf2d& T) const;
|
||||
gp_GTrsf2d operator * (const gp_GTrsf2d& T) const
|
||||
Standard_NODISCARD gp_GTrsf2d Multiplied (const gp_GTrsf2d& T) const;
|
||||
Standard_NODISCARD gp_GTrsf2d operator * (const gp_GTrsf2d& T) const
|
||||
{
|
||||
return Multiplied(T);
|
||||
}
|
||||
@@ -200,11 +200,11 @@ void operator *= (const gp_GTrsf2d& T)
|
||||
//!
|
||||
//! Raises an exception if N < 0 and if the matrix of the
|
||||
//! transformation is not inversible.
|
||||
gp_GTrsf2d Powered (const Standard_Integer N) const;
|
||||
Standard_NODISCARD gp_GTrsf2d Powered (const Standard_Integer N) const;
|
||||
|
||||
void Transforms (gp_XY& Coord) const;
|
||||
|
||||
gp_XY Transformed (const gp_XY& Coord) const;
|
||||
Standard_NODISCARD gp_XY Transformed (const gp_XY& Coord) const;
|
||||
|
||||
|
||||
//! Applies this transformation to the coordinates:
|
||||
|
@@ -251,14 +251,14 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of an hyperbola with
|
||||
//! respect to the point P which is the center of the symmetry.
|
||||
Standard_EXPORT gp_Hypr Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Hypr Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an hyperbola with
|
||||
//! respect to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Hypr Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Hypr Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -266,40 +266,40 @@ public:
|
||||
//! Performs the symmetrical transformation of an hyperbola with
|
||||
//! respect to a plane. The axis placement A2 locates the plane
|
||||
//! of the symmetry (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Hypr Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Hypr Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates an hyperbola. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Hypr Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Hypr Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales an hyperbola. S is the scaling value.
|
||||
gp_Hypr Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Hypr Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms an hyperbola with the transformation T from
|
||||
//! class Trsf.
|
||||
gp_Hypr Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Hypr Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates an hyperbola in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Hypr Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Hypr Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates an hyperbola from the point P1 to the point P2.
|
||||
gp_Hypr Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Hypr Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -268,7 +268,7 @@ public:
|
||||
//! Note:
|
||||
//! - Reverse assigns the result to this hyperbola, while
|
||||
//! - Reversed creates a new one.
|
||||
gp_Hypr2d Reversed() const;
|
||||
Standard_NODISCARD gp_Hypr2d Reversed() const;
|
||||
|
||||
//! Returns true if the local coordinate system is direct
|
||||
//! and false in the other case.
|
||||
@@ -279,21 +279,21 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of an hyperbola with
|
||||
//! respect to the point P which is the center of the symmetry.
|
||||
Standard_EXPORT gp_Hypr2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Hypr2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of an hyperbola with
|
||||
//! respect to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Hypr2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Hypr2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates an hyperbola. P is the center of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Hypr2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Hypr2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
@@ -302,27 +302,27 @@ public:
|
||||
//! If <S> is positive only the location point is
|
||||
//! modified. But if <S> is negative the "XAxis" is
|
||||
//! reversed and the "YAxis" too.
|
||||
gp_Hypr2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Hypr2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Transforms an hyperbola with the transformation T from
|
||||
//! class Trsf2d.
|
||||
gp_Hypr2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Hypr2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates an hyperbola in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Hypr2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Hypr2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates an hyperbola from the point P1 to the point P2.
|
||||
gp_Hypr2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Hypr2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
//! Note:
|
||||
//! - Reverse assigns the result to this line, while
|
||||
//! - Reversed creates a new one.
|
||||
gp_Lin Reversed() const;
|
||||
Standard_NODISCARD gp_Lin Reversed() const;
|
||||
|
||||
//! Changes the direction of the line.
|
||||
void SetDirection (const gp_Dir& V);
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a line
|
||||
//! with respect to the point P which is the center of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Lin Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Lin Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a line
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Lin Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Lin Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -149,14 +149,14 @@ public:
|
||||
//! with respect to a plane. The axis placement <A2>
|
||||
//! locates the plane of the symmetry :
|
||||
//! (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Lin Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Lin Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a line. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Lin Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Lin Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
@@ -164,26 +164,26 @@ public:
|
||||
//! Scales a line. S is the scaling value.
|
||||
//! The "Location" point (origin) of the line is modified.
|
||||
//! The "Direction" is reversed if the scale is negative.
|
||||
gp_Lin Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Lin Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a line with the transformation T from class Trsf.
|
||||
gp_Lin Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Lin Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a line in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Lin Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Lin Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a line from the point P1 to the point P2.
|
||||
gp_Lin Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Lin Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -79,7 +79,7 @@ public:
|
||||
//! Note:
|
||||
//! - Reverse assigns the result to this line, while
|
||||
//! - Reversed creates a new one.
|
||||
gp_Lin2d Reversed() const;
|
||||
Standard_NODISCARD gp_Lin2d Reversed() const;
|
||||
|
||||
//! Changes the direction of the line.
|
||||
void SetDirection (const gp_Dir2d& V);
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a line
|
||||
//! with respect to the point <P> which is the center
|
||||
//! of the symmetry
|
||||
Standard_EXPORT gp_Lin2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Lin2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
@@ -151,40 +151,40 @@ public:
|
||||
//! Performs the symmetrical transformation of a line
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Lin2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Lin2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a line. P is the center of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Lin2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Lin2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a line. S is the scaling value. Only the
|
||||
//! origin of the line is modified.
|
||||
gp_Lin2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Lin2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Transforms a line with the transformation T from class Trsf2d.
|
||||
gp_Lin2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Lin2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates a line in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Lin2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Lin2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates a line from the point P1 to the point P2.
|
||||
gp_Lin2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Lin2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -159,8 +159,8 @@ public:
|
||||
//! Computes the sum of this matrix and
|
||||
//! the matrix Other for each coefficient of the matrix :
|
||||
//! <me>.Coef(i,j) + <Other>.Coef(i,j)
|
||||
gp_Mat Added (const gp_Mat& Other) const;
|
||||
gp_Mat operator + (const gp_Mat& Other) const
|
||||
Standard_NODISCARD gp_Mat Added (const gp_Mat& Other) const;
|
||||
Standard_NODISCARD gp_Mat operator + (const gp_Mat& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
@@ -172,8 +172,8 @@ public:
|
||||
}
|
||||
|
||||
//! Divides all the coefficients of the matrix by Scalar
|
||||
gp_Mat Divided (const Standard_Real Scalar) const;
|
||||
gp_Mat operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Mat Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Mat operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -191,12 +191,12 @@ public:
|
||||
//! Exceptions
|
||||
//! Standard_ConstructionError if this matrix is singular,
|
||||
//! and therefore cannot be inverted.
|
||||
Standard_EXPORT gp_Mat Inverted() const;
|
||||
Standard_NODISCARD Standard_EXPORT gp_Mat Inverted() const;
|
||||
|
||||
|
||||
//! Computes the product of two matrices <me> * <Other>
|
||||
gp_Mat Multiplied (const gp_Mat& Other) const;
|
||||
gp_Mat operator * (const gp_Mat& Other) const
|
||||
Standard_NODISCARD gp_Mat Multiplied (const gp_Mat& Other) const;
|
||||
Standard_NODISCARD gp_Mat operator * (const gp_Mat& Other) const
|
||||
{
|
||||
return Multiplied(Other);
|
||||
}
|
||||
@@ -210,8 +210,8 @@ public:
|
||||
|
||||
void PreMultiply (const gp_Mat& Other);
|
||||
|
||||
gp_Mat Multiplied (const Standard_Real Scalar) const;
|
||||
gp_Mat operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Mat Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Mat operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ public:
|
||||
//! if N < 0 <me> = <me>.Invert() *...........* <me>.Invert().
|
||||
//! If N < 0 an exception will be raised if the matrix is not
|
||||
//! inversible
|
||||
gp_Mat Powered (const Standard_Integer N) const;
|
||||
Standard_NODISCARD gp_Mat Powered (const Standard_Integer N) const;
|
||||
|
||||
void Subtract (const gp_Mat& Other);
|
||||
void operator -= (const gp_Mat& Other)
|
||||
@@ -243,8 +243,8 @@ public:
|
||||
|
||||
//! cOmputes for each coefficient of the matrix :
|
||||
//! <me>.Coef(i,j) - <Other>.Coef(i,j)
|
||||
gp_Mat Subtracted (const gp_Mat& Other) const;
|
||||
gp_Mat operator - (const gp_Mat& Other) const
|
||||
Standard_NODISCARD gp_Mat Subtracted (const gp_Mat& Other) const;
|
||||
Standard_NODISCARD gp_Mat operator - (const gp_Mat& Other) const
|
||||
{
|
||||
return Subtracted(Other);
|
||||
}
|
||||
@@ -253,7 +253,7 @@ public:
|
||||
|
||||
|
||||
//! Transposes the matrix. A(j, i) -> A (i, j)
|
||||
gp_Mat Transposed() const;
|
||||
Standard_NODISCARD gp_Mat Transposed() const;
|
||||
|
||||
|
||||
friend class gp_XYZ;
|
||||
|
@@ -139,8 +139,8 @@ public:
|
||||
//! Note:
|
||||
//! - operator += assigns the result to this matrix, while
|
||||
//! - operator + creates a new one.
|
||||
gp_Mat2d Added (const gp_Mat2d& Other) const;
|
||||
gp_Mat2d operator + (const gp_Mat2d& Other) const
|
||||
Standard_NODISCARD gp_Mat2d Added (const gp_Mat2d& Other) const;
|
||||
Standard_NODISCARD gp_Mat2d operator + (const gp_Mat2d& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
@@ -153,8 +153,8 @@ public:
|
||||
|
||||
|
||||
//! Divides all the coefficients of the matrix by a scalar.
|
||||
gp_Mat2d Divided (const Standard_Real Scalar) const;
|
||||
gp_Mat2d operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Mat2d Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Mat2d operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -164,10 +164,10 @@ public:
|
||||
|
||||
//! Inverses the matrix and raises exception if the matrix
|
||||
//! is singular.
|
||||
gp_Mat2d Inverted() const;
|
||||
Standard_NODISCARD gp_Mat2d Inverted() const;
|
||||
|
||||
gp_Mat2d Multiplied (const gp_Mat2d& Other) const;
|
||||
gp_Mat2d operator * (const gp_Mat2d& Other) const
|
||||
Standard_NODISCARD gp_Mat2d Multiplied (const gp_Mat2d& Other) const;
|
||||
Standard_NODISCARD gp_Mat2d operator * (const gp_Mat2d& Other) const
|
||||
{
|
||||
return Multiplied(Other);
|
||||
}
|
||||
@@ -180,8 +180,8 @@ public:
|
||||
//! <me> = Other * <me>.
|
||||
void PreMultiply (const gp_Mat2d& Other);
|
||||
|
||||
gp_Mat2d Multiplied (const Standard_Real Scalar) const;
|
||||
gp_Mat2d operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Mat2d Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Mat2d operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
//! if N < 0 <me> = <me>.Invert() *...........* <me>.Invert().
|
||||
//! If N < 0 an exception can be raised if the matrix is not
|
||||
//! inversible
|
||||
gp_Mat2d Powered (const Standard_Integer N) const;
|
||||
Standard_NODISCARD gp_Mat2d Powered (const Standard_Integer N) const;
|
||||
|
||||
void Subtract (const gp_Mat2d& Other);
|
||||
void operator -= (const gp_Mat2d& Other)
|
||||
@@ -213,8 +213,8 @@ public:
|
||||
|
||||
//! Computes for each coefficient of the matrix :
|
||||
//! <me>.Coef(i,j) - <Other>.Coef(i,j)
|
||||
gp_Mat2d Subtracted (const gp_Mat2d& Other) const;
|
||||
gp_Mat2d operator - (const gp_Mat2d& Other) const
|
||||
Standard_NODISCARD gp_Mat2d Subtracted (const gp_Mat2d& Other) const;
|
||||
Standard_NODISCARD gp_Mat2d operator - (const gp_Mat2d& Other) const
|
||||
{
|
||||
return Subtracted(Other);
|
||||
}
|
||||
@@ -223,7 +223,7 @@ public:
|
||||
|
||||
|
||||
//! Transposes the matrix. A(j, i) -> A (i, j)
|
||||
gp_Mat2d Transposed() const;
|
||||
Standard_NODISCARD gp_Mat2d Transposed() const;
|
||||
|
||||
|
||||
friend class gp_Trsf2d;
|
||||
|
@@ -165,7 +165,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a parabola
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Parab Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Parab Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -173,7 +173,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a parabola
|
||||
//! with respect to an axis placement which is the axis of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Parab Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Parab Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -181,14 +181,14 @@ public:
|
||||
//! Performs the symmetrical transformation of a parabola
|
||||
//! with respect to a plane. The axis placement A2 locates
|
||||
//! the plane of the symmetry (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Parab Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Parab Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a parabola. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Parab Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Parab Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
@@ -196,26 +196,26 @@ public:
|
||||
//! Scales a parabola. S is the scaling value.
|
||||
//! If S is negative the direction of the symmetry axis
|
||||
//! XAxis is reversed and the direction of the YAxis too.
|
||||
gp_Parab Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Parab Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a parabola with the transformation T from class Trsf.
|
||||
gp_Parab Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Parab Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a parabola in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Parab Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Parab Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a parabola from the point P1 to the point P2.
|
||||
gp_Parab Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Parab Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -177,7 +177,7 @@ public:
|
||||
//! Note:
|
||||
//! - Reverse assigns the result to this parabola, while
|
||||
//! - Reversed creates a new one.
|
||||
gp_Parab2d Reversed() const;
|
||||
Standard_NODISCARD gp_Parab2d Reversed() const;
|
||||
|
||||
//! Returns true if the local coordinate system is direct
|
||||
//! and false in the other case.
|
||||
@@ -188,21 +188,21 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of a parabola with respect
|
||||
//! to the point P which is the center of the symmetry
|
||||
Standard_EXPORT gp_Parab2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Parab2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of a parabola with respect
|
||||
//! to an axis placement which is the axis of the symmetry.
|
||||
Standard_EXPORT gp_Parab2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Parab2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a parabola. P is the center of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Parab2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Parab2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
@@ -210,26 +210,26 @@ public:
|
||||
//! Scales a parabola. S is the scaling value.
|
||||
//! If S is negative the direction of the symmetry axis
|
||||
//! "XAxis" is reversed and the direction of the "YAxis" too.
|
||||
gp_Parab2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Parab2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Transforms an parabola with the transformation T from class Trsf2d.
|
||||
gp_Parab2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Parab2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates a parabola in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Parab2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Parab2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
|
||||
//! Translates a parabola from the point P1 to the point P2.
|
||||
gp_Parab2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Parab2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -178,7 +178,7 @@ public:
|
||||
//! Warnings :
|
||||
//! The normal direction to the plane is not changed.
|
||||
//! The "XAxis" and the "YAxis" are reversed.
|
||||
Standard_EXPORT gp_Pln Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pln Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
//! the "XDirection" and the "YDirection" after transformation
|
||||
//! if the initial plane was right handed, else it is the
|
||||
//! opposite.
|
||||
Standard_EXPORT gp_Pln Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pln Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -202,20 +202,20 @@ public:
|
||||
//! direction is the cross product between the "XDirection"
|
||||
//! and the "YDirection" after transformation if the initial
|
||||
//! plane was right handed, else it is the opposite.
|
||||
Standard_EXPORT gp_Pln Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pln Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! rotates a plane. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Pln Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Pln Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a plane. S is the scaling value.
|
||||
gp_Pln Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Pln Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
@@ -225,20 +225,20 @@ public:
|
||||
//! point, on the "XAxis" and the "YAxis".
|
||||
//! The resulting normal direction is the cross product between
|
||||
//! the "XDirection" and the "YDirection" after transformation.
|
||||
gp_Pln Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Pln Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a plane in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Pln Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Pln Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a plane from the point P1 to the point P2.
|
||||
gp_Pln Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Pln Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -129,7 +129,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a point
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Pnt Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pnt Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -137,41 +137,41 @@ public:
|
||||
//! Performs the symmetrical transformation of a point
|
||||
//! with respect to a plane. The axis placement A2 locates
|
||||
//! the plane of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Pnt Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pnt Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
|
||||
//! Rotates a point. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
Standard_EXPORT gp_Pnt Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pnt Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
//! Scales a point. S is the scaling value.
|
||||
gp_Pnt Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Pnt Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
//! Transforms a point with the transformation T.
|
||||
gp_Pnt Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Pnt Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
Standard_EXPORT void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Translates a point in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Pnt Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Pnt Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a point from the point P1 to the point P2.
|
||||
gp_Pnt Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Pnt Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
gp_Pnt Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Pnt Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -114,41 +114,41 @@ public:
|
||||
|
||||
//! Performs the symmetrical transformation of a point
|
||||
//! with respect to an axis placement which is the axis
|
||||
Standard_EXPORT gp_Pnt2d Mirrored (const gp_Pnt2d& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pnt2d Mirrored (const gp_Pnt2d& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2d& A);
|
||||
|
||||
|
||||
//! Rotates a point. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
Standard_EXPORT gp_Pnt2d Mirrored (const gp_Ax2d& A) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Pnt2d Mirrored (const gp_Ax2d& A) const;
|
||||
|
||||
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
|
||||
|
||||
//! Scales a point. S is the scaling value.
|
||||
gp_Pnt2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Pnt2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt2d& P, const Standard_Real S);
|
||||
|
||||
//! Transforms a point with the transformation T.
|
||||
gp_Pnt2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Pnt2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
|
||||
|
||||
Standard_EXPORT void Transform (const gp_Trsf2d& T);
|
||||
|
||||
|
||||
//! Translates a point in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Pnt2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Pnt2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
void Translate (const gp_Vec2d& V);
|
||||
|
||||
|
||||
//! Translates a point from the point P1 to the point P2.
|
||||
gp_Pnt2d Translated (const gp_Vec2d& V) const;
|
||||
Standard_NODISCARD gp_Pnt2d Translated (const gp_Vec2d& V) const;
|
||||
|
||||
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
|
||||
|
||||
gp_Pnt2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
Standard_NODISCARD gp_Pnt2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -128,13 +128,13 @@ public:
|
||||
void Reverse();
|
||||
|
||||
//! Return rotation with reversed direction (conjugated quaternion)
|
||||
gp_Quaternion Reversed() const;
|
||||
Standard_NODISCARD gp_Quaternion Reversed() const;
|
||||
|
||||
//! Inverts quaternion (both rotation direction and norm)
|
||||
void Invert();
|
||||
|
||||
//! Return inversed quaternion q^-1
|
||||
gp_Quaternion Inverted() const;
|
||||
Standard_NODISCARD gp_Quaternion Inverted() const;
|
||||
|
||||
//! Returns square norm of quaternion
|
||||
Standard_Real SquareNorm() const;
|
||||
@@ -151,8 +151,8 @@ void operator *= (const Standard_Real theScale)
|
||||
}
|
||||
|
||||
//! Returns scaled quaternion
|
||||
gp_Quaternion Scaled (const Standard_Real theScale) const;
|
||||
gp_Quaternion operator * (const Standard_Real theScale) const
|
||||
Standard_NODISCARD gp_Quaternion Scaled (const Standard_Real theScale) const;
|
||||
Standard_NODISCARD gp_Quaternion operator * (const Standard_Real theScale) const
|
||||
{
|
||||
return Scaled(theScale);
|
||||
}
|
||||
@@ -168,27 +168,27 @@ gp_Quaternion operator * (const Standard_Real theScale) const
|
||||
Standard_EXPORT void Normalize();
|
||||
|
||||
//! Returns quaternion scaled so that its norm goes to 1.
|
||||
gp_Quaternion Normalized() const;
|
||||
Standard_NODISCARD gp_Quaternion Normalized() const;
|
||||
|
||||
//! Returns quaternion with all components negated.
|
||||
//! Note that this operation does not affect neither
|
||||
//! rotation operator defined by quaternion nor its norm.
|
||||
gp_Quaternion Negated() const;
|
||||
gp_Quaternion operator -() const
|
||||
Standard_NODISCARD gp_Quaternion Negated() const;
|
||||
Standard_NODISCARD gp_Quaternion operator -() const
|
||||
{
|
||||
return Negated();
|
||||
}
|
||||
|
||||
//! Makes sum of quaternion components; result is "rotations mix"
|
||||
gp_Quaternion Added (const gp_Quaternion& theOther) const;
|
||||
gp_Quaternion operator + (const gp_Quaternion& theOther) const
|
||||
Standard_NODISCARD gp_Quaternion Added (const gp_Quaternion& theOther) const;
|
||||
Standard_NODISCARD gp_Quaternion operator + (const gp_Quaternion& theOther) const
|
||||
{
|
||||
return Added(theOther);
|
||||
}
|
||||
|
||||
//! Makes difference of quaternion components; result is "rotations mix"
|
||||
gp_Quaternion Subtracted (const gp_Quaternion& theOther) const;
|
||||
gp_Quaternion operator - (const gp_Quaternion& theOther) const
|
||||
Standard_NODISCARD gp_Quaternion Subtracted (const gp_Quaternion& theOther) const;
|
||||
Standard_NODISCARD gp_Quaternion operator - (const gp_Quaternion& theOther) const
|
||||
{
|
||||
return Subtracted(theOther);
|
||||
}
|
||||
@@ -199,8 +199,8 @@ gp_Quaternion operator - (const gp_Quaternion& theOther) const
|
||||
//! Notices than:
|
||||
//! qq' != q'q;
|
||||
//! qq^-1 = q;
|
||||
gp_Quaternion Multiplied (const gp_Quaternion& theOther) const;
|
||||
gp_Quaternion operator * (const gp_Quaternion& theOther) const
|
||||
Standard_NODISCARD gp_Quaternion Multiplied (const gp_Quaternion& theOther) const;
|
||||
Standard_NODISCARD gp_Quaternion operator * (const gp_Quaternion& theOther) const
|
||||
{
|
||||
return Multiplied(theOther);
|
||||
}
|
||||
|
@@ -132,7 +132,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a sphere
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Sphere Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Sphere Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a sphere with
|
||||
//! respect to an axis placement which is the axis of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Sphere Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Sphere Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -148,40 +148,40 @@ public:
|
||||
//! Performs the symmetrical transformation of a sphere with respect
|
||||
//! to a plane. The axis placement A2 locates the plane of the
|
||||
//! of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Sphere Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Sphere Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a sphere. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Sphere Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Sphere Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a sphere. S is the scaling value.
|
||||
//! The absolute value of S is used to scale the sphere
|
||||
gp_Sphere Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Sphere Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a sphere with the transformation T from class Trsf.
|
||||
gp_Sphere Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Sphere Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a sphere in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Sphere Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Sphere Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a sphere from the point P1 to the point P2.
|
||||
gp_Sphere Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Sphere Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -174,7 +174,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a torus
|
||||
//! with respect to the point P which is the center of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Torus Mirrored (const gp_Pnt& P) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Torus Mirrored (const gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a torus with
|
||||
//! respect to an axis placement which is the axis of the
|
||||
//! symmetry.
|
||||
Standard_EXPORT gp_Torus Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Torus Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -190,40 +190,40 @@ public:
|
||||
//! Performs the symmetrical transformation of a torus with respect
|
||||
//! to a plane. The axis placement A2 locates the plane of the
|
||||
//! of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Torus Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Torus Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a torus. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Torus Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Torus Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const gp_Pnt& P, const Standard_Real S);
|
||||
|
||||
|
||||
//! Scales a torus. S is the scaling value.
|
||||
//! The absolute value of S is used to scale the torus
|
||||
gp_Torus Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Torus Scaled (const gp_Pnt& P, const Standard_Real S) const;
|
||||
|
||||
void Transform (const gp_Trsf& T);
|
||||
|
||||
|
||||
//! Transforms a torus with the transformation T from class Trsf.
|
||||
gp_Torus Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Torus Transformed (const gp_Trsf& T) const;
|
||||
|
||||
void Translate (const gp_Vec& V);
|
||||
|
||||
|
||||
//! Translates a torus in the direction of the vector V.
|
||||
//! The magnitude of the translation is the vector's magnitude.
|
||||
gp_Torus Translated (const gp_Vec& V) const;
|
||||
Standard_NODISCARD gp_Torus Translated (const gp_Vec& V) const;
|
||||
|
||||
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
|
||||
|
||||
|
||||
//! Translates a torus from the point P1 to the point P2.
|
||||
gp_Torus Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
Standard_NODISCARD gp_Torus Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -282,10 +282,10 @@ public:
|
||||
//! Pnt P2 = P1.Transformed(Tcomp); //using Tcomp
|
||||
//! Pnt P3 = P1.Transformed(T1); //using T1 then T2
|
||||
//! P3.Transform(T2); // P3 = P2 !!!
|
||||
gp_Trsf Inverted() const;
|
||||
Standard_NODISCARD gp_Trsf Inverted() const;
|
||||
|
||||
gp_Trsf Multiplied (const gp_Trsf& T) const;
|
||||
gp_Trsf operator * (const gp_Trsf& T) const
|
||||
Standard_NODISCARD gp_Trsf Multiplied (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Trsf operator * (const gp_Trsf& T) const
|
||||
{
|
||||
return Multiplied(T);
|
||||
}
|
||||
@@ -314,7 +314,7 @@ void operator *= (const gp_Trsf& T)
|
||||
//!
|
||||
//! Raises if N < 0 and if the matrix of the transformation not
|
||||
//! inversible.
|
||||
gp_Trsf Powered (const Standard_Integer N) const;
|
||||
Standard_NODISCARD gp_Trsf Powered (const Standard_Integer N) const;
|
||||
|
||||
void Transforms (Standard_Real& X, Standard_Real& Y, Standard_Real& Z) const;
|
||||
|
||||
|
@@ -164,10 +164,10 @@ public:
|
||||
//! Raises an exception if the matrix of the transformation
|
||||
//! is not inversible, it means that the scale factor is lower
|
||||
//! or equal to Resolution from package gp.
|
||||
gp_Trsf2d Inverted() const;
|
||||
Standard_NODISCARD gp_Trsf2d Inverted() const;
|
||||
|
||||
gp_Trsf2d Multiplied (const gp_Trsf2d& T) const;
|
||||
gp_Trsf2d operator * (const gp_Trsf2d& T) const
|
||||
Standard_NODISCARD gp_Trsf2d Multiplied (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Trsf2d operator * (const gp_Trsf2d& T) const
|
||||
{
|
||||
return Multiplied(T);
|
||||
}
|
||||
|
@@ -173,8 +173,8 @@ public:
|
||||
}
|
||||
|
||||
//! Adds two vectors
|
||||
gp_Vec Added (const gp_Vec& Other) const;
|
||||
gp_Vec operator + (const gp_Vec& Other) const
|
||||
Standard_NODISCARD gp_Vec Added (const gp_Vec& Other) const;
|
||||
Standard_NODISCARD gp_Vec operator + (const gp_Vec& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
@@ -187,8 +187,8 @@ public:
|
||||
}
|
||||
|
||||
//! Subtracts two vectors
|
||||
gp_Vec Subtracted (const gp_Vec& Right) const;
|
||||
gp_Vec operator - (const gp_Vec& Right) const
|
||||
Standard_NODISCARD gp_Vec Subtracted (const gp_Vec& Right) const;
|
||||
Standard_NODISCARD gp_Vec operator - (const gp_Vec& Right) const
|
||||
{
|
||||
return Subtracted(Right);
|
||||
}
|
||||
@@ -201,8 +201,8 @@ public:
|
||||
}
|
||||
|
||||
//! Multiplies a vector by a scalar
|
||||
gp_Vec Multiplied (const Standard_Real Scalar) const;
|
||||
gp_Vec operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Vec Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Vec operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -215,8 +215,8 @@ public:
|
||||
}
|
||||
|
||||
//! Divides a vector by a scalar
|
||||
gp_Vec Divided (const Standard_Real Scalar) const;
|
||||
gp_Vec operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Vec Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Vec operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -229,8 +229,8 @@ public:
|
||||
}
|
||||
|
||||
//! computes the cross product between two vectors
|
||||
gp_Vec Crossed (const gp_Vec& Right) const;
|
||||
gp_Vec operator ^ (const gp_Vec& Right) const
|
||||
Standard_NODISCARD gp_Vec Crossed (const gp_Vec& Right) const;
|
||||
Standard_NODISCARD gp_Vec operator ^ (const gp_Vec& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -253,7 +253,7 @@ public:
|
||||
|
||||
//! Computes the triple vector product.
|
||||
//! <me> ^ (V1 ^ V2)
|
||||
gp_Vec CrossCrossed (const gp_Vec& V1, const gp_Vec& V2) const;
|
||||
Standard_NODISCARD gp_Vec CrossCrossed (const gp_Vec& V1, const gp_Vec& V2) const;
|
||||
|
||||
//! computes the scalar product
|
||||
Standard_Real Dot (const gp_Vec& Other) const;
|
||||
@@ -273,14 +273,14 @@ public:
|
||||
//! normalizes a vector
|
||||
//! Raises an exception if the magnitude of the vector is
|
||||
//! lower or equal to Resolution from gp.
|
||||
gp_Vec Normalized() const;
|
||||
Standard_NODISCARD gp_Vec Normalized() const;
|
||||
|
||||
//! Reverses the direction of a vector
|
||||
void Reverse();
|
||||
|
||||
//! Reverses the direction of a vector
|
||||
gp_Vec Reversed() const;
|
||||
gp_Vec operator -() const
|
||||
Standard_NODISCARD gp_Vec Reversed() const;
|
||||
Standard_NODISCARD gp_Vec operator -() const
|
||||
{
|
||||
return Reversed();
|
||||
}
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
//! with respect to the vector V which is the center of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Vec Mirrored (const gp_Vec& V) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Vec Mirrored (const gp_Vec& V) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax1& A1);
|
||||
|
||||
@@ -327,7 +327,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Vec Mirrored (const gp_Ax1& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Vec Mirrored (const gp_Ax1& A1) const;
|
||||
|
||||
Standard_EXPORT void Mirror (const gp_Ax2& A2);
|
||||
|
||||
@@ -335,25 +335,25 @@ public:
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
//! with respect to a plane. The axis placement A2 locates
|
||||
//! the plane of the symmetry : (Location, XDirection, YDirection).
|
||||
Standard_EXPORT gp_Vec Mirrored (const gp_Ax2& A2) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Vec Mirrored (const gp_Ax2& A2) const;
|
||||
|
||||
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a vector. A1 is the axis of the rotation.
|
||||
//! Ang is the angular value of the rotation in radians.
|
||||
gp_Vec Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Vec Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const Standard_Real S);
|
||||
|
||||
//! Scales a vector. S is the scaling value.
|
||||
gp_Vec Scaled (const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Vec Scaled (const Standard_Real S) const;
|
||||
|
||||
//! Transforms a vector with the transformation T.
|
||||
Standard_EXPORT void Transform (const gp_Trsf& T);
|
||||
|
||||
//! Transforms a vector with the transformation T.
|
||||
gp_Vec Transformed (const gp_Trsf& T) const;
|
||||
Standard_NODISCARD gp_Vec Transformed (const gp_Trsf& T) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -147,15 +147,15 @@ public:
|
||||
}
|
||||
|
||||
//! Adds two vectors
|
||||
gp_Vec2d Added (const gp_Vec2d& Other) const;
|
||||
gp_Vec2d operator + (const gp_Vec2d& Other) const
|
||||
Standard_NODISCARD gp_Vec2d Added (const gp_Vec2d& Other) const;
|
||||
Standard_NODISCARD gp_Vec2d operator + (const gp_Vec2d& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
|
||||
//! Computes the crossing product between two vectors
|
||||
Standard_Real Crossed (const gp_Vec2d& Right) const;
|
||||
Standard_Real operator ^ (const gp_Vec2d& Right) const
|
||||
Standard_NODISCARD Standard_Real Crossed (const gp_Vec2d& Right) const;
|
||||
Standard_NODISCARD Standard_Real operator ^ (const gp_Vec2d& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -177,8 +177,8 @@ public:
|
||||
}
|
||||
|
||||
//! divides a vector by a scalar
|
||||
gp_Vec2d Divided (const Standard_Real Scalar) const;
|
||||
gp_Vec2d operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Vec2d Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Vec2d operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -201,8 +201,8 @@ public:
|
||||
//! Normalizes a vector
|
||||
//! Raises an exception if the magnitude of the vector is
|
||||
//! lower or equal to Resolution from package gp.
|
||||
gp_Vec2d Multiplied (const Standard_Real Scalar) const;
|
||||
gp_Vec2d operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_Vec2d Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_Vec2d operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -213,13 +213,13 @@ public:
|
||||
//! Raises an exception if the magnitude of the vector is
|
||||
//! lower or equal to Resolution from package gp.
|
||||
//! Reverses the direction of a vector
|
||||
gp_Vec2d Normalized() const;
|
||||
Standard_NODISCARD gp_Vec2d Normalized() const;
|
||||
|
||||
void Reverse();
|
||||
|
||||
//! Reverses the direction of a vector
|
||||
gp_Vec2d Reversed() const;
|
||||
gp_Vec2d operator -() const
|
||||
Standard_NODISCARD gp_Vec2d Reversed() const;
|
||||
Standard_NODISCARD gp_Vec2d operator -() const
|
||||
{
|
||||
return Reversed();
|
||||
}
|
||||
@@ -232,8 +232,8 @@ public:
|
||||
}
|
||||
|
||||
//! Subtracts two vectors
|
||||
gp_Vec2d Subtracted (const gp_Vec2d& Right) const;
|
||||
gp_Vec2d operator - (const gp_Vec2d& Right) const
|
||||
Standard_NODISCARD gp_Vec2d Subtracted (const gp_Vec2d& Right) const;
|
||||
Standard_NODISCARD gp_Vec2d operator - (const gp_Vec2d& Right) const
|
||||
{
|
||||
return Subtracted(Right);
|
||||
}
|
||||
@@ -265,7 +265,7 @@ public:
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
//! with respect to the vector V which is the center of
|
||||
//! the symmetry.
|
||||
Standard_EXPORT gp_Vec2d Mirrored (const gp_Vec2d& V) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Vec2d Mirrored (const gp_Vec2d& V) const;
|
||||
|
||||
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
@@ -277,24 +277,24 @@ public:
|
||||
//! Performs the symmetrical transformation of a vector
|
||||
//! with respect to an axis placement which is the axis
|
||||
//! of the symmetry.
|
||||
Standard_EXPORT gp_Vec2d Mirrored (const gp_Ax2d& A1) const;
|
||||
Standard_EXPORT Standard_NODISCARD gp_Vec2d Mirrored (const gp_Ax2d& A1) const;
|
||||
|
||||
void Rotate (const Standard_Real Ang);
|
||||
|
||||
|
||||
//! Rotates a vector. Ang is the angular value of the
|
||||
//! rotation in radians.
|
||||
gp_Vec2d Rotated (const Standard_Real Ang) const;
|
||||
Standard_NODISCARD gp_Vec2d Rotated (const Standard_Real Ang) const;
|
||||
|
||||
void Scale (const Standard_Real S);
|
||||
|
||||
//! Scales a vector. S is the scaling value.
|
||||
gp_Vec2d Scaled (const Standard_Real S) const;
|
||||
Standard_NODISCARD gp_Vec2d Scaled (const Standard_Real S) const;
|
||||
|
||||
Standard_EXPORT void Transform (const gp_Trsf2d& T);
|
||||
|
||||
//! Transforms a vector with a Trsf from gp.
|
||||
gp_Vec2d Transformed (const gp_Trsf2d& T) const;
|
||||
Standard_NODISCARD gp_Vec2d Transformed (const gp_Trsf2d& T) const;
|
||||
|
||||
|
||||
|
||||
|
@@ -109,16 +109,16 @@ public:
|
||||
//! Computes the sum of this number pair and number pair Other
|
||||
//! new.X() = <me>.X() + Other.X()
|
||||
//! new.Y() = <me>.Y() + Other.Y()
|
||||
gp_XY Added (const gp_XY& Other) const;
|
||||
gp_XY operator + (const gp_XY& Other) const
|
||||
Standard_NODISCARD gp_XY Added (const gp_XY& Other) const;
|
||||
Standard_NODISCARD gp_XY operator + (const gp_XY& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
|
||||
|
||||
//! Real D = <me>.X() * Other.Y() - <me>.Y() * Other.X()
|
||||
Standard_Real Crossed (const gp_XY& Right) const;
|
||||
Standard_Real operator ^ (const gp_XY& Right) const
|
||||
Standard_NODISCARD Standard_Real Crossed (const gp_XY& Right) const;
|
||||
Standard_NODISCARD Standard_Real operator ^ (const gp_XY& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -141,8 +141,8 @@ public:
|
||||
}
|
||||
|
||||
//! Divides <me> by a real.
|
||||
gp_XY Divided (const Standard_Real Scalar) const;
|
||||
gp_XY operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_XY Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_XY operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -182,8 +182,8 @@ public:
|
||||
|
||||
//! New.X() = <me>.X() * Scalar;
|
||||
//! New.Y() = <me>.Y() * Scalar;
|
||||
gp_XY Multiplied (const Standard_Real Scalar) const;
|
||||
gp_XY operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_XY Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_XY operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -191,11 +191,11 @@ public:
|
||||
|
||||
//! new.X() = <me>.X() * Other.X();
|
||||
//! new.Y() = <me>.Y() * Other.Y();
|
||||
gp_XY Multiplied (const gp_XY& Other) const;
|
||||
Standard_NODISCARD gp_XY Multiplied (const gp_XY& Other) const;
|
||||
|
||||
//! New = Matrix * <me>
|
||||
gp_XY Multiplied (const gp_Mat2d& Matrix) const;
|
||||
gp_XY operator * (const gp_Mat2d& Matrix) const
|
||||
Standard_NODISCARD gp_XY Multiplied (const gp_Mat2d& Matrix) const;
|
||||
Standard_NODISCARD gp_XY operator * (const gp_Mat2d& Matrix) const
|
||||
{
|
||||
return Multiplied(Matrix);
|
||||
}
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
//! New.X() = <me>.X()/ <me>.Modulus()
|
||||
//! New.Y() = <me>.Y()/ <me>.Modulus()
|
||||
//! Raises ConstructionError if <me>.Modulus() <= Resolution from gp
|
||||
gp_XY Normalized() const;
|
||||
Standard_NODISCARD gp_XY Normalized() const;
|
||||
|
||||
|
||||
//! <me>.X() = -<me>.X()
|
||||
@@ -220,8 +220,8 @@ public:
|
||||
|
||||
//! New.X() = -<me>.X()
|
||||
//! New.Y() = -<me>.Y()
|
||||
gp_XY Reversed() const;
|
||||
gp_XY operator -() const
|
||||
Standard_NODISCARD gp_XY Reversed() const;
|
||||
Standard_NODISCARD gp_XY operator -() const
|
||||
{
|
||||
return Reversed();
|
||||
}
|
||||
@@ -262,8 +262,8 @@ public:
|
||||
|
||||
//! new.X() = <me>.X() - Other.X()
|
||||
//! new.Y() = <me>.Y() - Other.Y()
|
||||
gp_XY Subtracted (const gp_XY& Right) const;
|
||||
gp_XY operator - (const gp_XY& Right) const
|
||||
Standard_NODISCARD gp_XY Subtracted (const gp_XY& Right) const;
|
||||
Standard_NODISCARD gp_XY operator - (const gp_XY& Right) const
|
||||
{
|
||||
return Subtracted(Right);
|
||||
}
|
||||
|
@@ -129,8 +129,8 @@ public:
|
||||
//! new.X() = <me>.X() + Other.X()
|
||||
//! new.Y() = <me>.Y() + Other.Y()
|
||||
//! new.Z() = <me>.Z() + Other.Z()
|
||||
gp_XYZ Added (const gp_XYZ& Other) const;
|
||||
gp_XYZ operator + (const gp_XYZ& Other) const
|
||||
Standard_NODISCARD gp_XYZ Added (const gp_XYZ& Other) const;
|
||||
Standard_NODISCARD gp_XYZ operator + (const gp_XYZ& Other) const
|
||||
{
|
||||
return Added(Other);
|
||||
}
|
||||
@@ -149,8 +149,8 @@ public:
|
||||
//! new.X() = <me>.Y() * Other.Z() - <me>.Z() * Other.Y()
|
||||
//! new.Y() = <me>.Z() * Other.X() - <me>.X() * Other.Z()
|
||||
//! new.Z() = <me>.X() * Other.Y() - <me>.Y() * Other.X()
|
||||
gp_XYZ Crossed (const gp_XYZ& Right) const;
|
||||
gp_XYZ operator ^ (const gp_XYZ& Right) const
|
||||
Standard_NODISCARD gp_XYZ Crossed (const gp_XYZ& Right) const;
|
||||
Standard_NODISCARD gp_XYZ operator ^ (const gp_XYZ& Right) const
|
||||
{
|
||||
return Crossed(Right);
|
||||
}
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
|
||||
//! Triple vector product
|
||||
//! computes New = <me>.Cross(Coord1.Cross(Coord2))
|
||||
gp_XYZ CrossCrossed (const gp_XYZ& Coord1, const gp_XYZ& Coord2) const;
|
||||
Standard_NODISCARD gp_XYZ CrossCrossed (const gp_XYZ& Coord1, const gp_XYZ& Coord2) const;
|
||||
|
||||
//! divides <me> by a real.
|
||||
void Divide (const Standard_Real Scalar);
|
||||
@@ -181,8 +181,8 @@ public:
|
||||
}
|
||||
|
||||
//! divides <me> by a real.
|
||||
gp_XYZ Divided (const Standard_Real Scalar) const;
|
||||
gp_XYZ operator / (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_XYZ Divided (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_XYZ operator / (const Standard_Real Scalar) const
|
||||
{
|
||||
return Divided(Scalar);
|
||||
}
|
||||
@@ -228,8 +228,8 @@ public:
|
||||
//! New.X() = <me>.X() * Scalar;
|
||||
//! New.Y() = <me>.Y() * Scalar;
|
||||
//! New.Z() = <me>.Z() * Scalar;
|
||||
gp_XYZ Multiplied (const Standard_Real Scalar) const;
|
||||
gp_XYZ operator * (const Standard_Real Scalar) const
|
||||
Standard_NODISCARD gp_XYZ Multiplied (const Standard_Real Scalar) const;
|
||||
Standard_NODISCARD gp_XYZ operator * (const Standard_Real Scalar) const
|
||||
{
|
||||
return Multiplied(Scalar);
|
||||
}
|
||||
@@ -238,11 +238,11 @@ public:
|
||||
//! new.X() = <me>.X() * Other.X();
|
||||
//! new.Y() = <me>.Y() * Other.Y();
|
||||
//! new.Z() = <me>.Z() * Other.Z();
|
||||
gp_XYZ Multiplied (const gp_XYZ& Other) const;
|
||||
Standard_NODISCARD gp_XYZ Multiplied (const gp_XYZ& Other) const;
|
||||
|
||||
//! New = Matrix * <me>
|
||||
gp_XYZ Multiplied (const gp_Mat& Matrix) const;
|
||||
gp_XYZ operator * (const gp_Mat& Matrix) const
|
||||
Standard_NODISCARD gp_XYZ Multiplied (const gp_Mat& Matrix) const;
|
||||
Standard_NODISCARD gp_XYZ operator * (const gp_Mat& Matrix) const
|
||||
{
|
||||
return Multiplied(Matrix);
|
||||
}
|
||||
@@ -259,7 +259,7 @@ public:
|
||||
//! New.Y() = <me>.Y()/ <me>.Modulus()
|
||||
//! New.Z() = <me>.Z()/ <me>.Modulus()
|
||||
//! Raised if <me>.Modulus() <= Resolution from gp
|
||||
gp_XYZ Normalized() const;
|
||||
Standard_NODISCARD gp_XYZ Normalized() const;
|
||||
|
||||
|
||||
//! <me>.X() = -<me>.X()
|
||||
@@ -271,7 +271,7 @@ public:
|
||||
//! New.X() = -<me>.X()
|
||||
//! New.Y() = -<me>.Y()
|
||||
//! New.Z() = -<me>.Z()
|
||||
gp_XYZ Reversed() const;
|
||||
Standard_NODISCARD gp_XYZ Reversed() const;
|
||||
|
||||
|
||||
//! <me>.X() = <me>.X() - Other.X()
|
||||
@@ -287,8 +287,8 @@ public:
|
||||
//! new.X() = <me>.X() - Other.X()
|
||||
//! new.Y() = <me>.Y() - Other.Y()
|
||||
//! new.Z() = <me>.Z() - Other.Z()
|
||||
gp_XYZ Subtracted (const gp_XYZ& Right) const;
|
||||
gp_XYZ operator - (const gp_XYZ& Right) const
|
||||
Standard_NODISCARD gp_XYZ Subtracted (const gp_XYZ& Right) const;
|
||||
Standard_NODISCARD gp_XYZ operator - (const gp_XYZ& Right) const
|
||||
{
|
||||
return Subtracted(Right);
|
||||
}
|
||||
|
Reference in New Issue
Block a user