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);
194 void transform(
const Trsf2d& T);
206 const XY& xy()
const;
bool operator==(const Dir2d &other) const
Definition: Dir2d.h:106
X
Definition: Globals.h:32
static double epsilon()
Definition: Precision.h:66
Dir2d operator-() const
Definition: Dir2d.h:101
#define GEOM_EXPORT
Definition: geom_defines.h:8
Y
Definition: Globals.h:32
Defines a non-persistent vector in 2D space.
Definition: Vec2d.h:34
Geom::Vec operator *(const double Scalar, const Geom::Vec &V)
Definition: Vec.h:312
double operator^(const Dir2d &Right) const
Definition: Dir2d.h:103