struct
#include <Spore ModAPI/Spore/MathUtils.h>
Vector2 A vector of 2 float values (x, y).
Public static variables
Constructors, destructors, conversion operators
Public functions
- auto Length() const -> float
- Returns the length of the vector, computed as the square root of then sum of its components squared.
- auto Normalized() const -> Vector2
- Returns a normalized version of this vector. Being normalized means it has a length of 1.0.
- auto Dot(const Vector2& other) const -> float
- Computes the dot product between this vector and
other
. - auto operator+=(const Vector2&) -> Vector2&
- VECTOR 2.
- auto operator+=(float) -> Vector2&
- auto operator-=(const Vector2&) -> Vector2&
- auto operator-=(float) -> Vector2&
- auto operator*=(float) -> Vector2&
- auto operator/=(float) -> Vector2&
- auto operator==(const Vector2& b) const -> bool
- auto operator!=(const Vector2& b) const -> bool