//! 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);
//! 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);
//! 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;