Go to the documentation of this file.
27 namespace Geom {
class Ax2d; }
28 namespace Geom {
class Trsf2d; }
29 namespace Geom {
class Vec2d; }
51 Dir2d(
const double Xv,
const double Yv);
61 double coord(
const int Index)
const;
64 void coord(
double& Xv,
double& Yv)
const;
72 bool isEqual(
const Dir2d& Other,
const double AngularTolerance)
const;
Dir2d()
Creates an indefinite Direction.
void setXY(const XY &Coord)
static constexpr double epsilon()
Definition: Precision.h:63
bool isNormal(const Dir2d &Other, const double AngularTolerance) const
Dir2d(const XY &Coord)
Creates a Direction from a doublet of coordinates. Raises ConstructionError if Coord....
Dir2d rotated(const double Ang) const
double crossed(const Dir2d &Right) const
Computes the cross product between two directions.
double operator^(const Dir2d &Right) const
Definition: Dir2d.h:106
double operator*(const Dir2d &Other) const
Definition: Dir2d.h:107
X
Definition: Globals.h:29
bool isParallel(const Dir2d &Other, const double AngularTolerance) const
Dir2d mirrored(const Ax2d &A) const
Dir2d mirrored(const Dir2d &V) const
Dir2d(const Vec2d &V)
Normalizes the vector V and creates a Direction. Raises ConstructionError if V.Magnitude() <= Resolut...
void mirror(const Ax2d &A)
double x() const
For this unit vector, returns its x coordinate.
Dir2d transformed(const Trsf2d &T) const
double angle(const Dir2d &Other) const
bool operator==(const Dir2d &other) const
Definition: Dir2d.h:109
void coord(double &Xv, double &Yv) const
double dot(const Dir2d &Other) const
Computes the scalar product
bool isOpposite(const Dir2d &Other, const double AngularTolerance) const
void setX(const double X)
Defines a non-persistent vector in 2D space.
Definition: Vec2d.h:33
Dir2d operator-() const
Definition: Dir2d.h:104
Dir2d reversed() const
Reverses the orientation of a direction
Y
Definition: Globals.h:30
void mirror(const Dir2d &V)
void transform(const Trsf2d &T)
bool isEqual(const Dir2d &Other, const double AngularTolerance) const
Dir2d(const double Xv, const double Yv)
Creates a Direction with its 2 cartesian coordinates. Raises ConstructionError if Sqrt(Xv*Xv + Yv*Yv)...
double coord(const int Index) const
void setCoord(const int Index, const double Xi)
void setCoord(const double Xv, const double Yv)
void rotate(const double Ang)
void setY(const double Y)
double y() const
For this unit vector, returns its y coordinate.
Definition: PropertyContainer.h:33