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
Graphic2d_Vertex Class Reference

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

#include <Graphic2d_Vertex.hxx>

Public Member Functions

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

 Graphic2d_Vertex (const Standard_Real AX, const Standard_Real AY)
 Creates a point with <AX>, <AY> coordinates.

 Graphic2d_Vertex (const Standard_ShortReal AX, const Standard_ShortReal AY)
 Creates a point with <AX>, <AY> coordinates.

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

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

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

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

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

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

Standard_Boolean IsEqual (const Graphic2d_Vertex &other) const
 Test if <me> and <other> are the the same vertex.

Standard_Boolean operator== (const Graphic2d_Vertex &other) const

Static Public Member Functions

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


Constructor & Destructor Documentation


Member Function Documentation

Standard_Boolean Graphic2d_Vertex::operator== ( const Graphic2d_Vertex other) const [inline]

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