FOUND
|
A Vec2 is an immutable object that represents a 2D Vector. More...
#include <attitude-utils.hpp>
Public Member Functions | |
decimal | Magnitude () const |
Provides the magnitude of this Vec2. | |
decimal | MagnitudeSq () const |
Provides the square of the magnitude of this Vec2. | |
Vec2 | Normalize () const |
Normalizes this. | |
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 | |
decimal | x |
The x coordinate. | |
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.
decimal found::Vec2::x |
The x coordinate.
decimal found::Vec2::y |
The y coordinate.