41 XY(
const double X,
const double Y);
46 void add(
const XY& Other);
50 XY added(
const XY& Other)
const;
55 double coord(
const int Index)
const;
57 void coord(
double&
X,
double&
Y)
const;
59 double crossed(
const XY& Right)
const;
62 double crossMagnitude(
const XY& Right)
const;
66 double crossSquareMagnitude(
const XY& Right)
const;
68 void divide(
const double Scalar);
70 XY divided(
const double Scalar)
const;
72 double dot(
const XY& Other)
const;
78 bool isEqual(
const XY& Other,
const double Tolerance)
const;
80 double modulus()
const;
83 XY multiplied(
const double Scalar)
const;
86 XY multiplied(
const XY& Other)
const;
88 XY multiplied(
const Mat2d& Matrix)
const;
91 void multiply(
const double Scalar);
94 void multiply(
const XY& Other);
96 void multiply(
const Mat2d& Matrix);
105 XY normalized()
const;
120 void operator*=(
const double Scalar) { multiply(Scalar); }
122 void operator*=(
const XY& Other) { multiply(Other); }
123 void operator*=(
const Mat2d& Matrix) { multiply(Matrix); }
125 XY operator*(
const double Scalar)
const {
return multiplied(Scalar); }
128 XY operator/(
const double Scalar)
const {
return divided(Scalar); }
129 double operator^(
const XY& Right)
const {
return crossed(Right); }
142 void setCoord(
const int Index,
const double Xi);
145 void setCoord(
const double X,
const double Y);
149 void setLinearForm(
const double A1,
const XY& XY1,
const double A2,
const XY& XY2);
154 void setLinearForm(
const double A1,
const XY& XY1,
const double A2,
const XY& XY2,
const XY& XY3);
159 void setLinearForm(
const double A1,
const XY& XY1,
const XY& XY2);
164 void setLinearForm(
const XY& XY1,
const XY& XY2);
167 void setX(
const double X);
169 void setY(
const double Y);
172 double squareModulus()
const;
176 void subtract(
const XY& Right);
179 XY subtracted(
const XY& Right)
const;
X
Definition: Globals.h:32
#define GEOM_EXPORT
Definition: geom_defines.h:8
void operator+=(const XY &Other)
Definition: XY.h:107
void operator/=(const double Scalar)
Definition: XY.h:127
Y
Definition: Globals.h:32
XY operator/(const double Scalar) const
Definition: XY.h:128
XY operator-(const XY &Right) const
Definition: XY.h:114
Geom::Vec operator *(const double Scalar, const Geom::Vec &V)
Definition: Vec.h:312
XY operator+(const XY &Other) const
Definition: XY.h:108
void operator-=(const XY &Right)
Definition: XY.h:112
XY operator-() const
Definition: XY.h:110
double operator^(const XY &Right) const
Definition: XY.h:129