11namespace LinearAlgebra {
Definition AbsoluteEncoder.h:5
A polar vector.
Definition Polar.h:19
static const Polar forward
A normalized forward-oriented vector.
Definition Polar.h:49
Angle angle
The angle in degrees clockwise rotation.
Definition Polar.h:26
static const Polar left
A normalized left-oriented vector.
Definition Polar.h:55
static Polar Rotate(const Polar &v, Angle a)
Rotate a vector.
Definition Polar.cpp:124
static const Polar back
A normalized back-oriented vector.
Definition Polar.h:51
Polar operator/=(float f)
Definition Polar.cpp:113
friend Polar operator/(const Polar &v, float f)
Scale the vector uniformly down.
Polar(Spherical s)
Convert a vector from spherical coordinates to polar coordinates.
static Polar Normalize(const Polar &v)
Convert the vector to a length of 1.
Definition Polar.cpp:44
Polar operator-=(const Polar &v)
Definition Polar.cpp:62
friend Polar operator/(float f, const Polar &v)
friend Polar operator*(const Polar &v, float f)
Scale the vector uniformly up.
friend Polar operator*(float f, const Polar &v)
bool operator==(const Polar &v) const
Equality test to another vector.
Definition Polar.cpp:40
float magnitude() const
The vector length.
Definition Polar.h:70
Polar normalized() const
Convert the vector to a length of a.
Definition Polar.cpp:48
static const Polar zero
A polar vector with zero degrees and distance.
Definition Polar.h:47
float distance
The distance in meters.
Definition Polar.h:23
Polar operator+=(const Polar &v)
Definition Polar.cpp:92
static float Distance(const Polar &v1, const Polar &v2)
The distance between two vectors.
Definition Polar.cpp:118
Polar operator+(const Polar &v) const
Add a polar vector to this vector.
Definition Polar.cpp:66
static float Magnitude(const Polar &v)
The vector length.
Definition Polar.h:67
Polar operator-() const
Negate the vector.
Definition Polar.cpp:53
static const Polar right
A normalized right-oriented vector.
Definition Polar.h:53
Polar operator*=(float f)
Definition Polar.cpp:103
Polar()
A new vector with polar coordinates with zero degrees and distance.
Definition Polar.cpp:7
A spherical vector.
Definition Spherical.h:21
A 2=dimensional vector.
Definition Vector2.h:38