11namespace LinearAlgebra {
96using namespace Passer::LinearAlgebra;
An angle in various representations.
Definition Angle.h:21
A direction using angles in various representations.
Definition Direction.h:25
static const DirectionOf back
A backward direction with horizontal angle -180 and zero vertical angle.
Definition Direction.h:64
static const DirectionOf left
A left-pointing direction with horizontal angle -90 and zero vertical angle.
Definition Direction.h:72
DirectionOf< T > operator-() const
Negate/reverse the direction.
Definition Direction.cpp:88
static const DirectionOf down
A downward direction with zero horizontal angle and vertical angle -90.
Definition Direction.h:69
AngleOf< T > vertical
vertical angle, range in degrees = (-90..90]
Definition Direction.h:30
static const DirectionOf up
A upward direction with zero horizontal angle and vertical angle 90.
Definition Direction.h:66
Vector3 ToVector3() const
Convert the direction into a carthesian vector.
Definition Direction.cpp:44
bool operator==(const DirectionOf< T > direction) const
Test whether this direction is equal to another direction.
Definition Direction.cpp:81
static DirectionOf< T > Degrees(float horizontal, float vertical)
Create a direction using angle values in degrees.
Definition Direction.cpp:67
void Normalize()
Normalize this vector to the specified ranges.
Definition Direction.cpp:94
static const DirectionOf forward
A forward direction with zero for both angles.
Definition Direction.h:61
static DirectionOf< T > Radians(float horizontal, float vertical)
Create a direction using angle values in radians.
Definition Direction.cpp:74
static const DirectionOf right
A right-pointing direction with horizontal angle 90 and zero vertical angle.
Definition Direction.h:75
AngleOf< T > horizontal
horizontal angle, range= (-180..180]
Definition Direction.h:28
static DirectionOf< T > FromVector3(Vector3 vector)
Convert a carthesian vector into a direction.
Definition Direction.cpp:53
A 3-dimensional vector.
Definition Vector3.h:42