#include <Standard_ShortReal.hxx>
#include <Standard_Real.hxx>
-//! This class represents a graphical 3D point. <br>
+//! This class represents a graphical 3D point.
class Graphic3d_Vertex : public TEL_POINT
{
- public:
- //! Creates a point with 0.0, 0.0, 0.0 coordinates. <br>
+public:
+
+ //! Creates a point with 0.0, 0.0, 0.0 coordinates.
Graphic3d_Vertex()
- { SetCoord(0.f,0.f,0.f); }
- //! Creates a point with coordinates identical to <APoint>. <br>
- Graphic3d_Vertex(const Graphic3d_Vertex& APoint)
- { SetCoord(APoint.X(),APoint.Y(),APoint.Z()); }
- //! Creates a point with <AX>, <AY> and <AZ> coordinates. <br>
- Graphic3d_Vertex(const Standard_ShortReal AX,const Standard_ShortReal AY,const Standard_ShortReal AZ)
- { SetCoord(AX,AY,AZ); }
- //! Creates a point with <AX>, <AY> and <AZ> coordinates. <br>
- Graphic3d_Vertex(const Standard_Real AX,const Standard_Real AY,const Standard_Real AZ)
- { SetCoord(AX,AY,AZ); }
- //! Modifies the coordinates of the point <me>. <br>
- void SetCoord(const Standard_ShortReal AX,const Standard_ShortReal AY,const Standard_ShortReal AZ)
- { xyz[0] = AX, xyz[1] = AY, xyz[2] = AZ; }
- //! Modifies the coordinates of the point <me>. <br>
- void SetCoord(const Standard_Real AX,const Standard_Real AY,const Standard_Real AZ)
- { xyz[0] = Standard_ShortReal(AX), xyz[1] = Standard_ShortReal(AY), xyz[2] = Standard_ShortReal(AZ); }
- //! Returns the coordinates of the point <me>. <br>
- void Coord(Standard_ShortReal& AX,Standard_ShortReal& AY,Standard_ShortReal& AZ) const
- { AX = xyz[0], AY = xyz[1], AZ = xyz[2]; }
- //! Returns the coordinates of the point <me>. <br>
- void Coord(Standard_Real& AX,Standard_Real& AY,Standard_Real& AZ) const
- { AX = xyz[0], AY = xyz[1], AZ = xyz[2]; }
- //! Returns the X coordinates of the point <me>. <br>
+ {
+ SetCoord (0.0f, 0.0f, 0.0f);
+ }
+
+ //! Creates a point with coordinates identical to thePoint.
+ Graphic3d_Vertex (const Graphic3d_Vertex& thePoint)
+ {
+ SetCoord (thePoint.X(), thePoint.Y(), thePoint.Z());
+ }
+
+ //! Creates a point with theX, theY and theZ coordinates.
+ Graphic3d_Vertex (const Standard_ShortReal theX,
+ const Standard_ShortReal theY,
+ const Standard_ShortReal theZ)
+ {
+ SetCoord (theX, theY, theZ);
+ }
+
+ //! Creates a point with theX, theY and theZ coordinates.
+ Graphic3d_Vertex (const Standard_Real theX,
+ const Standard_Real theY,
+ const Standard_Real theZ)
+ {
+ SetCoord (theX, theY, theZ);
+ }
+
+ //! Modifies the coordinates.
+ void SetCoord (const Standard_ShortReal theX,
+ const Standard_ShortReal theY,
+ const Standard_ShortReal theZ)
+ {
+ xyz[0] = theX;
+ xyz[1] = theY;
+ xyz[2] = theZ;
+ }
+
+ //! Modifies the coordinates.
+ void SetCoord (const Standard_Real theX,
+ const Standard_Real theY,
+ const Standard_Real theZ)
+ {
+ xyz[0] = Standard_ShortReal (theX);
+ xyz[1] = Standard_ShortReal (theY);
+ xyz[2] = Standard_ShortReal (theZ);
+ }
+
+ //! Returns the coordinates.
+ void Coord (Standard_ShortReal& theX,
+ Standard_ShortReal& theY,
+ Standard_ShortReal& theZ) const
+ {
+ theX = xyz[0];
+ theY = xyz[1];
+ theZ = xyz[2];
+ }
+
+ //! Returns the coordinates.
+ void Coord (Standard_Real& theX,
+ Standard_Real& theY,
+ Standard_Real& theZ) const
+ {
+ theX = xyz[0];
+ theY = xyz[1];
+ theZ = xyz[2];
+ }
+
+ //! Returns the X coordinates.
Standard_ShortReal X() const { return xyz[0]; }
- //! Returns the Y coordinate of the point <me>. <br>
+
+ //! Returns the Y coordinate.
Standard_ShortReal Y() const { return xyz[1]; }
- //! Returns the Z coordinate of the point <me>. <br>
+
+ //! Returns the Z coordinate.
Standard_ShortReal Z() const { return xyz[2]; }
- //! Returns the distance between <AV1> and <AV2>. <br>
- Standard_EXPORT Standard_ShortReal Distance(const Graphic3d_Vertex& AOther) const;
+
+ //! Returns the distance between two points.
+ Standard_EXPORT Standard_ShortReal Distance (const Graphic3d_Vertex& theOther) const;
+
};
#endif