Go to the documentation of this file.
41 Pnt2d(
const double Xp,
const double Yp);
53 double coord(
const int Index)
const;
55 void coord(
double& Xp,
double& Yp)
const;
61 bool isEqual(
const Pnt2d& Other,
const double LinearTolerance)
const;
89 void setCoord(
const int Index,
const double Xi);
91 void setCoord(
const double Xp,
const double Yp);
void mirror(const Ax2d &A)
Pnt2d mirrored(const Pnt2d &P) const
bool operator!=(const Geom::Pnt2d &other) const
Checks whether two points are unequal within linear tolerance (default 1E-07)
double y() const
For this point, returns its y coordinate.
void setY(const double Y)
Assigns the given value to the Y coordinate of this point.
X
Definition: Globals.h:29
Pnt2d translated(const Pnt2d &P1, const Pnt2d &P2) const
const XY & xy() const
For this point, returns its two coordinates as a number pair.
void scale(const Pnt2d &P, const double S)
Pnt2d scaled(const Pnt2d &P, const double S) const
Transforms a point with the transformation T.
void setCoord(const int Index, const double Xi)
Pnt2d(const XY &Coord)
Creates a point with a doublet of coordinates.
double distance(const Pnt2d &Other) const
Computes the distance between two points.
void setX(const double X)
Assigns the given value to the X coordinate of this point.
Pnt2d transformed(const Trsf2d &T) const
void setCoord(const double Xp, const double Yp)
For this point, assigns the values Xp and Yp to its two coordinates
void mirror(const Pnt2d &P)
double squareDistance(const Pnt2d &Other) const
Computes the square distance between two points.
Defines a non-persistent vector in 2D space.
Definition: Vec2d.h:33
Pnt2d(const double Xp, const double Yp)
Creates a point with its 2 cartesian's coordinates : Xp, Yp.
void rotate(const Pnt2d &P, const double Ang)
Y
Definition: Globals.h:30
void transform(const Trsf2d &T)
double coord(const int Index) const
void setXY(const XY &Coord)
Assigns the two coordinates of Coord to this point.
Pnt2d mirrored(const Ax2d &A) const
const XY & coord() const
For this point, returns its two coordinates as a number pair.
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:34
Pnt2d translated(const Vec2d &V) const
double x() const
For this point, returns its x coordinate.
bool isEqual(const Pnt2d &Other, const double LinearTolerance) const
void translate(const Vec2d &V)
bool operator==(const Geom::Pnt2d &other) const
Checks whether two points are equal within linear tolerance (default 1E-07)
void translate(const Pnt2d &P1, const Pnt2d &P2)
Pnt2d rotated(const Pnt2d &P, const double Ang) const
Scales a point. S is the scaling value.
void coord(double &Xp, double &Yp) const
For this point returns its two coordinates as a number pair.
Definition: PropertyContainer.h:33