# FoundationClasses
TKMath
gp

# gp_Pnt2d Class Reference

Defines a non-persistent 2D cartesian point.
.

`#include <gp_Pnt2d.hxx>`

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)
| gp_Pnt2d ()
| gp_Pnt2d (const gp_XY &Coord)
| Creates a point with a doublet of coordinates. .
| gp_Pnt2d (const Standard_Real Xp, const Standard_Real Yp)
| Creates a point with its 2 cartesian's coordinates : Xp, Yp. .
void | SetCoord (const Standard_Integer Index, const Standard_Real Xi)
| Assigns the value Xi to the coordinate that corresponds to Index: Index = 1 => X is modified Index = 2 => Y is modified Raises OutOfRange if Index != {1, 2}. .
void | SetCoord (const Standard_Real Xp, const Standard_Real Yp)
| For this point, assigns the values Xp and Yp to its two coordinates .
void | SetX (const Standard_Real X)
| Assigns the given value to the X coordinate of this point. .
void | SetY (const Standard_Real Y)
| Assigns the given value to the Y coordinate of this point. .
void | SetXY (const gp_XY &Coord)
| Assigns the two coordinates of Coord to this point. .
Standard_EXPORT Standard_Real | Coord (const Standard_Integer Index) const
| Returns the coordinate of range Index : Index = 1 => X is returned Index = 2 => Y is returned Raises OutOfRange if Index != {1, 2}. .
void | Coord (Standard_Real &Xp, Standard_Real &Yp) const
| For this point returns its two coordinates as a number pair. .
Standard_Real | X () const
| For this point, returns its X coordinate. .
Standard_Real | Y () const
| For this point, returns its Y coordinate. .
const gp_XY & | XY () const
| For this point, returns its two coordinates as a number pair. .
const gp_XY & | Coord () const
| For this point, returns its two coordinates as a number pair. .
gp_XY & | ChangeCoord ()
| Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value. .
Standard_Boolean | IsEqual (const gp_Pnt2d &Other, const Standard_Real LinearTolerance) const
| Comparison Returns True if the distance between the two points is lower or equal to LinearTolerance. .
Standard_Real | Distance (const gp_Pnt2d &Other) const
| Computes the distance between two points. .
Standard_Real | SquareDistance (const gp_Pnt2d &Other) const
| Computes the square distance between two points. .
Standard_EXPORT void | Mirror (const gp_Pnt2d &P)
| Performs the symmetrical transformation of a point with respect to the point P which is the center of the symmetry. .
Standard_EXPORT gp_Pnt2d | Mirrored (const gp_Pnt2d &P) const
| Performs the symmetrical transformation of a point with respect to an axis placement which is the axis .
Standard_EXPORT void | Mirror (const gp_Ax2d &A)
Standard_EXPORT gp_Pnt2d | Mirrored (const gp_Ax2d &A) const
| Rotates a point. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians. .
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. .
Standard_EXPORT void | Transform (const gp_Trsf2d &T)
gp_Pnt2d | Transformed (const gp_Trsf2d &T) const
| Translates a point in the direction of the vector V. The magnitude of the translation is the vector's magnitude. .
void | Translate (const gp_Vec2d &V)
gp_Pnt2d | Translated (const gp_Vec2d &V) const
| Translates a point from the point P1 to the point P2. .
void | Translate (const gp_Pnt2d &P1, const gp_Pnt2d &P2)
gp_Pnt2d | Translated (const gp_Pnt2d &P1, const gp_Pnt2d &P2) const
const gp_XY & | _CSFDB_Getgp_Pnt2dcoord () const

## Private Attributes

gp_XY | coord

## Friends

Standard_EXPORT friend Handle_Standard_Type & | gp_Pnt2d_Type_ ()

## Constructor & Destructor Documentation

gp_Pnt2d::gp_Pnt2d | ( |  | ) | `[inline]`

gp_Pnt2d::gp_Pnt2d | ( | const gp_XY & | Coord | ) | `[inline]`

gp_Pnt2d::gp_Pnt2d | ( | const Standard_Real | Xp,
|  | const Standard_Real | Yp
| ) | `[inline]`

## Member Function Documentation

const gp_XY& gp_Pnt2d::_CSFDB_Getgp_Pnt2dcoord | ( |  | ) | const`[inline]`

gp_XY & gp_Pnt2d::ChangeCoord | ( |  | ) | `[inline]`

const gp_XY & gp_Pnt2d::Coord | ( |  | ) | const`[inline]`

void gp_Pnt2d::Coord | ( | Standard_Real & | Xp,
|  | Standard_Real & | Yp
| ) | const`[inline]`

Standard_Real gp_Pnt2d::Coord | ( | const Standard_Integer | Index | ) | const`[inline]`

Standard_Real gp_Pnt2d::Distance | ( | const gp_Pnt2d & | Other | ) | const`[inline]`

Standard_Boolean gp_Pnt2d::IsEqual | ( | const gp_Pnt2d & | Other,
|  | const Standard_Real | LinearTolerance
| ) | const`[inline]`

Standard_EXPORT void gp_Pnt2d::Mirror | ( | const gp_Ax2d & | A | ) |

Standard_EXPORT void gp_Pnt2d::Mirror | ( | const gp_Pnt2d & | P | ) |

Standard_EXPORT gp_Pnt2d gp_Pnt2d::Mirrored | ( | const gp_Ax2d & | A | ) | const

Standard_EXPORT gp_Pnt2d gp_Pnt2d::Mirrored | ( | const gp_Pnt2d & | P | ) | const

void gp_Pnt2d::operator delete | ( | void * | anAddress | ) | `[inline]`

void* gp_Pnt2d::operator new | ( | size_t | size | ) | `[inline]`

void* gp_Pnt2d::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

void gp_Pnt2d::Rotate | ( | const gp_Pnt2d & | P,
|  | const Standard_Real | Ang
| ) | `[inline]`

gp_Pnt2d gp_Pnt2d::Rotated | ( | const gp_Pnt2d & | P,
|  | const Standard_Real | Ang
| ) | const`[inline]`

void gp_Pnt2d::Scale | ( | const gp_Pnt2d & | P,
|  | const Standard_Real | S
| ) | `[inline]`

gp_Pnt2d gp_Pnt2d::Scaled | ( | const gp_Pnt2d & | P,
|  | const Standard_Real | S
| ) | const`[inline]`

void gp_Pnt2d::SetCoord | ( | const Standard_Real | Xp,
|  | const Standard_Real | Yp
| ) | `[inline]`

void gp_Pnt2d::SetCoord | ( | const Standard_Integer | Index,
|  | const Standard_Real | Xi
| ) | `[inline]`

void gp_Pnt2d::SetX | ( | const Standard_Real | X | ) | `[inline]`

void gp_Pnt2d::SetXY | ( | const gp_XY & | Coord | ) | `[inline]`

void gp_Pnt2d::SetY | ( | const Standard_Real | Y | ) | `[inline]`

Standard_Real gp_Pnt2d::SquareDistance | ( | const gp_Pnt2d & | Other | ) | const`[inline]`

Standard_EXPORT void gp_Pnt2d::Transform | ( | const gp_Trsf2d & | T | ) |

gp_Pnt2d gp_Pnt2d::Transformed | ( | const gp_Trsf2d & | T | ) | const`[inline]`

void gp_Pnt2d::Translate | ( | const gp_Pnt2d & | P1,
|  | const gp_Pnt2d & | P2
| ) | `[inline]`

void gp_Pnt2d::Translate | ( | const gp_Vec2d & | V | ) | `[inline]`

gp_Pnt2d gp_Pnt2d::Translated | ( | const gp_Pnt2d & | P1,
|  | const gp_Pnt2d & | P2
| ) | const`[inline]`

gp_Pnt2d gp_Pnt2d::Translated | ( | const gp_Vec2d & | V | ) | const`[inline]`

Standard_Real gp_Pnt2d::X | ( |  | ) | const`[inline]`

const gp_XY & gp_Pnt2d::XY | ( |  | ) | const`[inline]`

Standard_Real gp_Pnt2d::Y | ( |  | ) | const`[inline]`

## Friends And Related Function Documentation

Standard_EXPORT friend Handle_Standard_Type& gp_Pnt2d_Type_ | ( |  | ) | `[friend]`

## Field Documentation

gp_XY gp_Pnt2d::coord `[private]`

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

- gp_Pnt2d.hxx
- gp_Pnt2d.lxx