48 Dir2d(
const double Xv,
const double Yv);
52 double angle(
const Dir2d& Other)
const;
58 double coord(
const int Index)
const;
61 void coord(
double& Xv,
double& Yv)
const;
63 double crossed(
const Dir2d& Right)
const;
65 double dot(
const Dir2d& Other)
const;
69 bool isEqual(
const Dir2d& Other,
const double AngularTolerance)
const;
74 bool isNormal(
const Dir2d& Other,
const double AngularTolerance)
const;
79 bool isOpposite(
const Dir2d& Other,
const double AngularTolerance)
const;
85 bool isParallel(
const Dir2d& Other,
const double AngularTolerance)
const;
87 void mirror(
const Dir2d& V);
89 void mirror(
const Ax2d& A);
110 Dir2d reversed()
const;
111 void rotate(
const double Ang);
115 Dir2d rotated(
const double Ang)
const;
133 void setCoord(
const int Index,
const double Xi);
149 void setCoord(
const double Xv,
const double Yv);
163 void setX(
const double X);
178 void setXY(
const XY& Coord);
192 void setY(
const double Y);
206 const XY& xy()
const;
bool operator==(const Dir2d &other) const
Definition: Dir2d.h:106
X
Definition: Globals.h:29
static double epsilon()
Definition: Precision.h:64
Dir2d operator-() const
Definition: Dir2d.h:101
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
DualNumber operator *(DualNumber a, DualNumber b)
Definition: DualNumber.h:71
double operator^(const Dir2d &Right) const
Definition: Dir2d.h:103