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

The abstract class Point describes the common
behavior of geometric points in 2D space.
The Geom2d package also provides the concrete
class Geom2d_CartesianPoint.

#include <Geom2d_Point.hxx>

Inheritance diagram for Geom2d_Point:
Inheritance graph
[legend]

Public Member Functions

virtual void Coord (Standard_Real &X, Standard_Real &Y) const =0
 returns the Coordinates of <me>.

virtual gp_Pnt2d Pnt2d () const =0
 returns a non persistent copy of <me>

virtual Standard_Real X () const =0
 returns the X coordinate of <me>.

virtual Standard_Real Y () const =0
 returns the Y coordinate of <me>.

Standard_Real Distance (const Handle< Geom2d_Point > &Other) const
 computes the distance between <me> and <Other>.

Standard_Real SquareDistance (const Handle< Geom2d_Point > &Other) const
 computes the square distance between <me> and <Other>.


Member Function Documentation

virtual void Geom2d_Point::Coord ( Standard_Real X,
Standard_Real Y 
) const [pure virtual]

Implemented in Geom2d_CartesianPoint.

virtual gp_Pnt2d Geom2d_Point::Pnt2d ( ) const [pure virtual]

Implemented in Geom2d_CartesianPoint.

virtual Standard_Real Geom2d_Point::X ( ) const [pure virtual]

Implemented in Geom2d_CartesianPoint.

virtual Standard_Real Geom2d_Point::Y ( ) const [pure virtual]

Implemented in Geom2d_CartesianPoint.


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