#include <Vector.hh>
Public Member Functions | |
| constexpr | Vector2f (f32 x_, f32 y_) |
| constexpr void | set (f32 val) |
| constexpr Vector2f | operator- () const |
| constexpr Vector2f | operator- (const Vector2f &rhs) const |
| constexpr Vector2f | operator+ (const Vector2f &rhs) const |
| constexpr Vector2f & | operator+= (const Vector2f &rhs) |
| constexpr Vector2f | operator* (const f32 scalar) const |
| constexpr Vector2f & | operator*= (const f32 scalar) |
| constexpr f32 | cross (const Vector2f &rhs) const |
| constexpr f32 | dot (const Vector2f &rhs) const |
| constexpr f32 | dot () const |
| constexpr f32 | length () const |
| constexpr f32 | normalise () |
| constexpr void | normalise2 () |
| void | read (Stream &stream) |
| Initializes a Vector2f by reading 8 bytes from the stream. | |
Public Attributes | |
| f32 | x |
| f32 | y |
Static Public Attributes | |
| static const Vector2f | zero = Vector2f(0.0f, 0.0f) |
| static const Vector2f | ex = Vector2f(1.0f, 0.0f) |
| static const Vector2f | ey = Vector2f(0.0f, 1.0f) |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlineconstexpr0x80243A78 |
|
inlinenodiscardconstexpr |
|
inlineconstexpr |
|
inlinenodiscardconstexpr |
|
inline |