Go to the documentation of this file.
33 class LX_GEOM_EXPORT
XY
39 XY(
const double X,
const double Y);
53 double coord(
const int Index)
const;
70 double dot(
const XY& Other)
const;
76 bool isEqual(
const XY& Other,
const double Tolerance)
const;
123 XY operator*(
const double Scalar)
const {
return multiplied(Scalar); }
126 XY operator/(
const double Scalar)
const {
return divided(Scalar); }
127 double operator^(
const XY& Right)
const {
return crossed(Right); }
double crossSquareMagnitude(const XY &Right) const
void multiply(const double Scalar)
XY multiplied(const double Scalar) const
double x() const
Returns the x coordinate of this number pair.
bool isEqual(const XY &Other, const double Tolerance) const
double operator*(const XY &Other) const
Definition: XY.h:116
void multiply(const XY &Other)
void operator+=(const XY &Other)
Definition: XY.h:105
X
Definition: Globals.h:29
XY operator/(const double Scalar) const
Definition: XY.h:126
XY()
Creates an indefinite XY number pair.
void operator*=(const XY &Other)
Definition: XY.h:120
XY(const double X, const double Y)
a number pair defined by the XY coordinates
double crossMagnitude(const XY &Right) const
void operator/=(const double Scalar)
Definition: XY.h:125
double coord(const int Index) const
double y() const
Returns the y coordinate of this number pair.
void operator*=(const double Scalar)
Definition: XY.h:118
XY operator*(const Mat2d &Matrix) const
Definition: XY.h:114
void subtract(const XY &Right)
void setY(const double Y)
Assigns the given value to the Y coordinate of this number pair.
XY operator-() const
Definition: XY.h:108
XY operator+(const XY &Other) const
Definition: XY.h:106
XY multiplied(const XY &Other) const
void setLinearForm(const XY &XY1, const XY &XY2)
double dot(const XY &Other) const
Computes the scalar product between <me> and Other
void operator-=(const XY &Right)
Definition: XY.h:110
XY divided(const double Scalar) const
Divides <me> by a real.
XY multiplied(const Mat2d &Matrix) const
New = Matrix * <me>
void setX(const double X)
Assigns the given value to the X coordinate of this number pair.
double squareModulus() const
Computes x*x + y*y where x and y are the two coordinates of this number pair.
Y
Definition: Globals.h:30
XY operator-(const XY &Right) const
Definition: XY.h:112
void coord(double &X, double &Y) const
For this number pair, returns its coordinates X and Y.
void setCoord(const double X, const double Y)
XY added(const XY &Other) const
double modulus() const
Computes Sqrt (x*x + y*y) where x and y are the two coordinates of this number pair.
void add(const XY &Other)
void multiply(const Mat2d &Matrix)
<me> = Matrix * <me>
void setLinearForm(const double A1, const XY &XY1, const double A2, const XY &XY2, const XY &XY3)
void divide(const double Scalar)
divides <me> by a real.
void setCoord(const int Index, const double Xi)
void setLinearForm(const double A1, const XY &XY1, const XY &XY2)
double crossed(const XY &Right) const
Real D = <me>.x() * Other.y() - <me>.y() * Other.x()
double operator^(const XY &Right) const
Definition: XY.h:127
XY operator*(const double Scalar) const
Definition: XY.h:123
void operator*=(const Mat2d &Matrix)
Definition: XY.h:121
XY subtracted(const XY &Right) const
Definition: PropertyContainer.h:33
void setLinearForm(const double A1, const XY &XY1, const double A2, const XY &XY2)