Open CASCADE Technology 6.6.0
Public Member Functions
Geom2d_CartesianPoint Class Reference

Describes a point in 2D space. A
Geom2d_CartesianPoint is defined by a gp_Pnt2d
point, with its two Cartesian coordinates X and Y.

#include <Geom2d_CartesianPoint.hxx>

Inheritance diagram for Geom2d_CartesianPoint:
Inheritance graph
[legend]

Public Member Functions

 Geom2d_CartesianPoint (const gp_Pnt2d &P)
 Returns a persistent copy of P.

 Geom2d_CartesianPoint (const Standard_Real X, const Standard_Real Y)
void SetCoord (const Standard_Real X, const Standard_Real Y)
 Set <me> to X, Y coordinates.

void SetPnt2d (const gp_Pnt2d &P)
 Set <me> to P.X(), P.Y() coordinates.

void SetX (const Standard_Real X)
 Changes the X coordinate of me.

void SetY (const Standard_Real Y)
 Changes the Y coordinate of me.

void Coord (Standard_Real &X, Standard_Real &Y) const
 Returns the coordinates of <me>.

gp_Pnt2d Pnt2d () const
 Returns a non persistent cartesian point with
the same coordinates as <me>.

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

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

void Transform (const gp_Trsf2d &T)
 Transformation of a geometric object. This tansformation
can be a translation, a rotation, a symmetry, a scaling
or a complex transformation obtained by combination of
the previous elementaries transformations.
(see class Transformation of the package Geom2d).
//! The following transformations have the same properties
as the previous ones but they don't modified the object
itself. A copy of the object is returned.

Handle_Geom2d_Geometry Copy () const

Constructor & Destructor Documentation

Geom2d_CartesianPoint::Geom2d_CartesianPoint ( const gp_Pnt2d P)
Geom2d_CartesianPoint::Geom2d_CartesianPoint ( const Standard_Real  X,
const Standard_Real  Y 
)

Member Function Documentation

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

Implements Geom2d_Point.

Handle_Geom2d_Geometry Geom2d_CartesianPoint::Copy ( ) const [virtual]

Implements Geom2d_Geometry.

gp_Pnt2d Geom2d_CartesianPoint::Pnt2d ( ) const [virtual]

-C++: return const&

Implements Geom2d_Point.

void Geom2d_CartesianPoint::SetCoord ( const Standard_Real  X,
const Standard_Real  Y 
)
void Geom2d_CartesianPoint::SetPnt2d ( const gp_Pnt2d P)
void Geom2d_CartesianPoint::SetX ( const Standard_Real  X)
void Geom2d_CartesianPoint::SetY ( const Standard_Real  Y)
void Geom2d_CartesianPoint::Transform ( const gp_Trsf2d T) [virtual]

Implements Geom2d_Geometry.

Standard_Real Geom2d_CartesianPoint::X ( ) const [virtual]

Implements Geom2d_Point.

Standard_Real Geom2d_CartesianPoint::Y ( ) const [virtual]

Implements Geom2d_Point.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines