44 Vec2d(
const double Xv,
const double Yv);
49 void add(
const Vec2d& Other);
56 double angle(
const Vec2d& Other)
const;
60 double coord(
const int Index)
const;
62 void coord(
double& Xv,
double& Yv)
const;
64 double crossed(
const Vec2d& Right)
const;
67 double crossMagnitude(
const Vec2d& Right)
const;
71 double crossSquareMagnitude(
const Vec2d& Right)
const;
73 void divide(
const double Scalar);
75 Vec2d divided(
const double Scalar)
const;
77 double dot(
const Vec2d& Other)
const;
81 bool isEqual(
const Vec2d& Other,
const double LinearTolerance,
const double AngularTolerance)
const;
84 bool isNormal(
const Vec2d& Other,
const double AngularTolerance)
const;
87 bool isOpposite(
const Vec2d& Other,
const double AngularTolerance)
const;
92 bool isParallel(
const Vec2d& Other,
const double AngularTolerance)
const;
95 double magnitude()
const;
97 double squareMagnitude()
const;
115 void multiply(
const double Scalar);
119 Vec2d multiplied(
const double Scalar)
const;
120 void mirror(
const Vec2d& V);
122 void mirror(
const Ax2d& A1);
141 Vec2d normalized()
const;
145 Vec2d reversed()
const;
146 void rotate(
const double Ang);
150 Vec2d rotated(
const double Ang)
const;
152 void scale(
const double S);
154 Vec2d scaled(
const double S)
const;
160 void setCoord(
const int Index,
const double Xi);
163 void setCoord(
const double Xv,
const double Yv);
166 void setLinearForm(
const double A1,
const Vec2d& V1,
const double A2,
const Vec2d& V2,
const Vec2d& V3);
169 void setLinearForm(
const double A1,
const Vec2d& V1,
const double A2,
const Vec2d& V2);
172 void setLinearForm(
const double A1,
const Vec2d& V1,
const Vec2d& V2);
178 void setLinearForm(
const Vec2d& Left,
const Vec2d& Right);
181 void setX(
const double X);
183 void setXY(
const XY& Coord);
186 void setY(
const double Y);
187 void subtract(
const Vec2d& Right);
197 const XY& xy()
const;
X
Definition: Globals.h:29
Vec2d operator-() const
Definition: Vec2d.h:102
void operator-=(const Vec2d &Right)
Definition: Vec2d.h:101
Vector3f & operator *=(Vector3f &rclVect, const Matrix4D &rclMtrx)
Definition: Matrix.h:351
void operator/=(const double Scalar)
Definition: Vec2d.h:111
Vec2d operator-(const Vec2d &Right) const
Definition: Vec2d.h:104
void transform(Container container, OutputIt out, BinaryFunction function)
Definition: Algorithms.h:29
Y
Definition: Globals.h:29
Defines a non-persistent vector in 2D space.
Definition: Vec2d.h:34
double operator^(const Vec2d &Right) const
Definition: Vec2d.h:113
Vec2d operator+(const Vec2d &Other) const
Definition: Vec2d.h:100
Vec2d operator/(const double Scalar) const
Definition: Vec2d.h:112
void operator+=(const Vec2d &Other)
Definition: Vec2d.h:99
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:33
DualNumber operator *(DualNumber a, DualNumber b)
Definition: DualNumber.h:71