Go to the documentation of this file.
35 typedef std::vector<Geom::Pnt>
PNTS;
43 class LX_GEOM_EXPORT
Pnt
60 Pnt(
const double Xp,
const double Yp,
const double Zp = .0);
71 void setCoord(
const int Index,
const double Xi);
73 void setCoord(
const double Xp,
const double Yp,
const double Zp = .0);
88 double coord(
const int Index)
const;
90 void coord(
double& Xp,
double& Yp,
double& Zp)
const;
115 bool isEqual(
const Pnt& Other,
const double LinearTolerance)
const;
Pnt rotated(const Geom::Ax1 &A1, const double Ang) const
Geom::XYZ & changeCoord()
void setX(const double X)
Assigns the given value to the X coordinate of this point.
Pnt(const Geom::XYZ &Coord)
Creates a point with a triplet of coordinates.
bool operator<(const Geom::Pnt &rhs) const
const Geom::XYZ & coord() const
For this point, returns its three coordinates as a number triple.
bool isEqual(const Pnt &Other, const double LinearTolerance) const
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
void scale(const Pnt &P, const double S)
Scales a point. S is the scaling value.
void mirror(const Pnt &P)
Pnt transformed(const Geom::Trsf &T) const
double & operator[](int i)
void setCoord(const int Index, const double Xi)
double y() const
For this point, returns its X coordinate.
double x() const
For this point, returns its X coordinate.
X
Definition: Globals.h:29
Pnt mirrored(const Pnt &P) const
Pnt mirrored(const Geom::Ax1 &A1) const
Pnt(const Pnt &rhs)
Copy constructor.
std::vector< Geom::Pnt > PNTS
Definition: Pnt.h:35
void translate(const Pnt &P1, const Pnt &P2)
double z() const
For this point, returns its X coordinate.
Pnt(const double Xp, const double Yp, const double Zp=.0)
Creates a point with its 3 Cartesian's coordinates : Xp, Yp, Zp.
Pnt mirrored(const Geom::Ax2 &A2) const
Pnt translated(const Pnt &P1, const Pnt &P2) const
void setCoord(const double Xp, const double Yp, const double Zp=.0)
For this point, assigns the values Xp, Yp and Zp to its three coordinates.
void setY(const double Y)
Assigns the given value to the Y coordinate of this point.
void mirror(const Geom::Ax1 &A1)
Pnt operator*(double scalar) const
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void transform(const Geom::Trsf &T)
Transforms a point with the transformation T.
void translate(const Geom::Vec &V)
Z
Definition: Globals.h:31
Pnt operator*(const Geom::Pnt &other) const
bool operator==(const Geom::Pnt &other) const
Checks whether two points are equal within linear tolerance (default 1E-07)
void mirror(const Geom::Ax2 &A2)
void rotate(const Geom::Ax1 &A1, const double Ang)
const double & operator[](int i) const
Y
Definition: Globals.h:30
void coord(double &Xp, double &Yp, double &Zp) const
For this point gives its three coordinates Xp, Yp and Zp.
void baryCenter(const double Alpha, const Pnt &P, const double Beta)
double distance(const Pnt &Other) const
Computes the distance between two points.
static Pnt ZeroPnt()
Definition: Pnt.h:65
bool operator!=(const Geom::Pnt &other) const
Checks whether two points are unequal within linear tolerance (default 1E-07)
void setXYZ(const Geom::XYZ &Coord)
Assigns the three coordinates of Coord to this point.
void setZ(const double Z)
Assigns the given value to the Z coordinate of this point.
Pnt translated(const Geom::Vec &V) const
Translates a point from the point P1 to the point P2.
Pnt scaled(const Pnt &P, const double S) const
double coord(const int Index) const
Pnt()
Creates an indefinite point.
double squareDistance(const Pnt &Other) const
Computes the square distance between two points.
LX_GEOM_EXPORT QString to_string(const Dir &dir)
Pnt operator+(const Geom::Pnt &other) const
Pnt operator-(const Geom::Pnt &other) const
const Geom::XYZ & xyz() const
For this point, returns its three coordinates as a number triple.
Definition: PropertyContainer.h:33