|
| Polar2D () |
| Construct a zero polar coordinate. More...
|
|
| Polar2D (double _r, double _theta) |
| Construct a polar coordinate from a radius and angle. More...
|
|
| Polar2D (const Point2D &point) |
| Construct a polar coordinate from a point. More...
|
|
double | R () const |
| Return the radius component of this coordinate. More...
|
|
void | R (const double _r) |
| Set the radius component of this coordinate. More...
|
|
double | Theta () const |
| Return the angle component of this coordinate. More...
|
|
void | Theta (const double _theta) |
| Set the angle component of this coordinate. More...
|
|
std::string | ToString () |
| Return the coordinate in string form. More...
|
|
void | ToPoint (Point2D &point) |
| Construct a Point2D representing this Polar2D. More...
|
|
void | Rotate (Polar2D &rotated, double delta) |
| Rotate polar coordinate by some angle. More...
|
|
void | RotateAround (const Point2D &other, Point2D &result, double delta) |
| Rotate this polar coordinate around a 2D point. More...
|
|
| Vector () |
| Construct a unit vector of a given type and size. More...
|
|
| Vector (std::initializer_list< double > ilst) |
| Construct a Vector with initial values. More...
|
|
double | At (size_t index) const |
| Return the element At index i. More...
|
|
void | Set (size_t index, double value) |
| Set a new value for the vector. More...
|
|
double | Magnitude () const |
| Compute the length of the vector. More...
|
|
void | SetEpsilon (double eps) |
| Set equivalence tolerance. More...
|
|
bool | IsZero () const |
| Determine whether this is a zero vector. More...
|
|
Vector | UnitVector () const |
| Obtain the unit vector for this vector. More...
|
|
bool | IsUnitVector () const |
| Determine if this is a unit vector. More...
|
|
double | Angle (const Vector< double, N > &other) const |
| Compute the Angle between two vectors. More...
|
|
bool | IsParallel (const Vector< double, N > &other) const |
| Determine whether two vectors are parallel. More...
|
|
bool | IsOrthogonal (const Vector< double, N > &other) const |
| Determine if two vectors are orthogonal or perpendicular to each other. More...
|
|
Vector | ProjectParallel (const Vector< double, N > &basis) const |
| Project this vector onto some basis vector. More...
|
|
Vector | ProjectOrthogonal (const Vector< double, N > &basis) |
| Project this vector perpendicularly onto some basis vector. More...
|
|
Vector | Cross (const Vector< double, N > &other) const |
| Compute the cross product of two vectors. More...
|
|
Vector | operator+ (const Vector< double, N > &other) const |
| Vector addition. More...
|
|
Vector | operator- (const Vector< double, N > &other) const |
| Vector subtraction. More...
|
|
Vector | operator* (const double k) const |
| Scalar multiplication. More...
|
|
double | operator* (const Vector< double, N > &other) const |
| Compute the Dot product between two vectors. More...
|
|
Vector | operator/ (const double k) const |
| Scalar division. More...
|
|
bool | operator== (const Vector< double, N > &other) const |
| Vector equivalence. More...
|
|
bool | operator!= (const Vector< double, N > &other) const |
| Vector non-equivalence. More...
|
|
const double & | operator[] (size_t i) const |
| Array indexing into vector. More...
|
|
Polar2D is a pairing of a radius r and angle θ from some reference point; in this library, it is assumed to be the Cartesian origin (0, 0).