73 double yy) :
x(xx),
y(yy) {}
94 *
this = matrix * vect;
289 x = vector1.
x + vector2.
x;
290 y = vector1.
y + vector2.
y;
356 return OD_ATAN2(crossProduct(vect), dotProduct(vect));
546 return x * vect.
x +
y * vect.
y;
558 return x * vect.
y -
y * vect.
x;
604 unsigned int i)
const
667 return *
reinterpret_cast<const OdGePoint2d*
>(
this);
#define GE_TOOLKIT_EXPORT
bool operator!=(T left, const OdGiVariant::EnumType right)
bool operator==(T left, const OdGiVariant::EnumType right)
OdGeVector2d & setToProduct(const OdGeMatrix2d &matrix, const OdGeVector2d &vect)
OdGeVector2d operator-() const
double crossProduct(const OdGeVector2d &vect) const
bool isPerpendicularTo(const OdGeVector2d &vect, const OdGeTol &tol, OdGeError &status) const
static GE_STATIC_EXPORT const OdGeVector2d kYAxis
OdGeVector2d & operator+=(const OdGeVector2d &vect)
bool isCodirectionalTo(const OdGeVector2d &vect, const OdGeTol &tol=OdGeContext::gTol) const
OdGeVector2d(double xx, double yy)
OdGeVector2d & normalize(const OdGeTol &tol=OdGeContext::gTol)
OdGeVector2d operator+(const OdGeVector2d &vect) const
bool isZeroLength(const OdGeTol &tol=OdGeContext::gTol) const
bool isParallelTo(const OdGeVector2d &vect, const OdGeTol &tol=OdGeContext::gTol) const
OdGeVector2d & rotateBy(double angle)
double dotProduct(const OdGeVector2d &vect) const
friend OdGeVector2d operator*(double scale, const OdGeVector2d &vector)
double lengthSqrd() const
OdGeVector2d & operator-=(const OdGeVector2d &vect)
OdGeVector2d perpVector() const
OdGeVector2d & normalize(const OdGeTol &tol, OdGeError &status)
OdGeVector2d normal(const OdGeTol &tol=OdGeContext::gTol) const
OdGeVector2d operator/(double scale) const
bool isEqualTo(const OdGeVector2d &vect, const OdGeTol &tol=OdGeContext::gTol) const
OdGeVector2d operator*(double scale) const
unsigned int largestElement() const
OdGeVector2d & setToSum(const OdGeVector2d &vector1, const OdGeVector2d &vector2)
static GE_STATIC_EXPORT const OdGeVector2d kIdentity
OdGeVector2d & transformBy(const OdGeMatrix2d &xfm)
OdGeVector2d & operator*=(double scale)
double angleToCCW(const OdGeVector2d &vect) const
bool isPerpendicularTo(const OdGeVector2d &vect, const OdGeTol &tol=OdGeContext::gTol) const
bool isUnitLength(const OdGeTol &tol=OdGeContext::gTol) const
bool isCodirectionalTo(const OdGeVector2d &vect, const OdGeTol &tol, OdGeError &status) const
OdGeVector2d & setToProduct(const OdGeVector2d &vect, double scale)
OdGeVector2d & set(double xx, double yy)
friend GE_TOOLKIT_EXPORT OdGeVector2d operator*(const OdGeMatrix2d &xfm, const OdGeVector2d &vect)
bool isParallelTo(const OdGeVector2d &vect, const OdGeTol &tol, OdGeError &status) const
static GE_STATIC_EXPORT const OdGeVector2d kXAxis
OdGeVector2d & mirror(const OdGeVector2d &line)
double angleTo(const OdGeVector2d &vect) const
OdGeVector2d operator-(const OdGeVector2d &vect) const
const OdGePoint2d & asPoint() const
OdGeVector2d & operator/=(double scale)
double normalizeGetLength(double tol=1.e-300)
static GE_STATIC_EXPORT OdGeTol gTol