OpenLexocad
27.1
|
#include <Tools2D.h>
Public Member Functions | |
Vector2d (void) | |
Vector2d (float x, float y) | |
Vector2d (double x, double y) | |
Vector2d (const Vector2d &v) | |
Vector2d & | operator= (const Vector2d &v) |
bool | operator== (const Vector2d &v) const |
Vector2d | operator+ (void) const |
Vector2d | operator+ (const Vector2d &v) const |
Vector2d & | operator+= (const Vector2d &v) |
Vector2d | operator- (void) const |
Vector2d | operator- (const Vector2d &v) const |
Vector2d & | operator-= (const Vector2d &v) |
Vector2d | operator * (double c) const |
Vector2d & | operator *= (double c) |
double | operator * (const Vector2d &v) const |
Vector2d | operator/ (double c) const |
Vector2d & | operator/= (double c) |
bool | IsNull (double tolerance=0.0) const |
double | Length (void) const |
double | Angle (void) const |
double | Sqr (void) const |
Vector2d & | Set (double x, double y) |
Vector2d & | Negate (void) |
Vector2d & | Scale (double factor) |
Vector2d & | Rotate (double angle) |
Vector2d & | Normalize (void) |
Vector2d | Perpendicular (bool clockwise=false) const |
double | Distance (const Vector2d &v) const |
bool | IsEqual (const Vector2d &v, double tolerance=0.0) const |
double | GetAngle (const Vector2d &v) const |
void | ProjectToLine (const Vector2d &point, const Vector2d &line) |
Static Public Member Functions | |
static Vector2d | FromPolar (double r, double fi) |
Public Attributes | |
double | x |
double | y |
The vector class for 2D calculations.
|
inline |
INLINES
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
double Base::Vector2d::GetAngle | ( | const Vector2d & | v | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
double Base::Vector2d::x |
double Base::Vector2d::y |