Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

gp_Pnt2d Class Reference

#include <gp_Pnt2d.hxx>

List of all members.

Detailed Description

Defines a non-persistent 2D cartesian point.

Definition at line 60 of file gp_Pnt2d.hxx.

Public Member Functions

const gp_XY_CSFDB_Getgp_Pnt2dcoord () const
gp_XYChangeCoord ()
const gp_XYCoord () const
 For this point, returns its two coordinates as a number pair.
void Coord (Standard_Real &Xp, Standard_Real &Yp) const
 For this point returns its two coordinates as a number pair.
Standard_EXPORT Standard_Real Coord (const Standard_Integer Index) const
Standard_Real Distance (const gp_Pnt2d &Other) const
 Computes the distance between two points.
 gp_Pnt2d (const Standard_Real Xp, const Standard_Real Yp)
 Creates a point with its 2 cartesian's coordinates : Xp, Yp.
 gp_Pnt2d (const gp_XY &Coord)
 Creates a point with a doublet of coordinates.
Standard_Boolean IsEqual (const gp_Pnt2d &Other, const Standard_Real LinearTolerance) const
Standard_EXPORT void Mirror (const gp_Ax2d &A)
Standard_EXPORT void Mirror (const gp_Pnt2d &P)
Standard_EXPORT gp_Pnt2d Mirrored (const gp_Ax2d &A) const
Standard_EXPORT gp_Pnt2d Mirrored (const gp_Pnt2d &P) const
void operator delete (void *anAddress)
void * operator new (size_t size)
void * operator new (size_t, void *anAddress)
void Rotate (const gp_Pnt2d &P, const Standard_Real Ang)
gp_Pnt2d Rotated (const gp_Pnt2d &P, const Standard_Real Ang) const
 Scales a point. S is the scaling value.
void Scale (const gp_Pnt2d &P, const Standard_Real S)
gp_Pnt2d Scaled (const gp_Pnt2d &P, const Standard_Real S) const
 Transforms a point with the transformation T.
void SetCoord (const Standard_Real Xp, const Standard_Real Yp)
 For this point, assigns the values Xp and Yp to its two coordinates
void SetCoord (const Standard_Integer Index, const Standard_Real Xi)
void SetX (const Standard_Real X)
 Assigns the given value to the X coordinate of this point.
void SetXY (const gp_XY &Coord)
 Assigns the two coordinates of Coord to this point.
void SetY (const Standard_Real Y)
 Assigns the given value to the Y coordinate of this point.
Standard_Real SquareDistance (const gp_Pnt2d &Other) const
 Computes the square distance between two points.
Standard_EXPORT void Transform (const gp_Trsf2d &T)
gp_Pnt2d Transformed (const gp_Trsf2d &T) const
void Translate (const gp_Pnt2d &P1, const gp_Pnt2d &P2)
void Translate (const gp_Vec2d &V)
gp_Pnt2d Translated (const gp_Pnt2d &P1, const gp_Pnt2d &P2) const
gp_Pnt2d Translated (const gp_Vec2d &V) const
 Translates a point from the point P1 to the point P2.
Standard_Real X () const
 For this point, returns its X coordinate.
const gp_XYXY () const
 For this point, returns its two coordinates as a number pair.
Standard_Real Y () const
 For this point, returns its Y coordinate.

Private Attributes

gp_XY coord


Standard_EXPORT friend
Handle_Standard_Type & 
gp_Pnt2d_Type_ ()

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

Generated by  Doxygen 1.6.0   Back to index