My Project
|
#include <attitude-utils.hpp>
Public Member Functions | |
decimal | Magnitude () const |
decimal | MagnitudeSq () const |
Vec2 | Normalize () const |
decimal | operator* (const Vec2 &) const |
Dot product (Scalar product) | |
Vec2 | operator* (const decimal &) const |
Scalar-vector Product. | |
Vec2 | operator- (const Vec2 &) const |
Vector Subtraction. | |
Vec2 | operator+ (const Vec2 &) const |
Vector Addition. | |
Public Attributes | |
const decimal | x |
The x coordinate. | |
const decimal | y |
The y coordinate. | |
A Vec2 is an immutable object that represents a 2D Vector
decimal found::Vec2::Magnitude | ( | ) | const |
Provides the magnitude of this Vec2
decimal found::Vec2::MagnitudeSq | ( | ) | const |
Provides the square of the magnitude of this Vec2
Vec2 found::Vec2::Normalize | ( | ) | const |
Normalizes this