Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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>.
-C++: return const&

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


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.

Implements Geom2d_Point.

Implements Geom2d_Geometry.

Implements Geom2d_Point.

Implements Geom2d_Point.


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