Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
Graphic3d_Vertex Class Reference

This class allows the creation and update of a
3D point.

#include <Graphic3d_Vertex.hxx>

Inheritance diagram for Graphic3d_Vertex:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC Graphic3d_Vertex ()
 Creates a point with 0.0, 0.0, 0.0 coordinates.

 Graphic3d_Vertex (const Graphic3d_Vertex &APoint)
 Creates a point with coordinates identical to <APoint>.

It's just a copy, but this simplifies the management
of the constructors of VertexC, VertexN and VertexNC.

 Graphic3d_Vertex (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ)
 Creates a point with <AX>, <AY> and <AZ> coordinates.

void SetCoord (const Standard_Real Xnew, const Standard_Real Ynew, const Standard_Real Znew)
 Modifies the coordinates of the point <me>.

void SetXCoord (const Standard_Real Xnew)
 Modifies the X coordinate of the point <me>.

void SetYCoord (const Standard_Real Ynew)
 Modifies the Y coordinate of the point <me>.

void SetZCoord (const Standard_Real Znew)
 Modifies the Z coordinate of the point <me>.

void Coord (Standard_Real &AX, Standard_Real &AY, Standard_Real &AZ) const
 Returns the coordinates of the point <me>.

Standard_Real X () const
 Returns the X coordinates of the point <me>.

Standard_Real Y () const
 Returns the Y coordinate of the point <me>.

Standard_Real Z () const
 Returns the Z coordinate of the point <me>.

Static Public Member Functions

static Standard_Real Distance (const Graphic3d_Vertex &AV1, const Graphic3d_Vertex &AV2)
 Returns the distance between <AV1> and <AV2>.


Constructor & Destructor Documentation


Member Function Documentation


The documentation for this class was generated from the following file: