|
constexpr | Vector2 (const Type x, const Type y) |
|
template<typename U , STK::enable_if_safe_cast_t< U, Type > = true> |
constexpr | Vector2 (const Vector2< U > &v) |
|
template<typename U > |
constexpr | operator Vector2< U > () const |
|
constexpr const Type & | x () const |
|
constexpr const Type & | y () const |
|
constexpr ranges::span< const Type, 2 > | data () const |
|
constexpr Type & | x () |
|
constexpr Type & | y () |
|
constexpr ranges::span< Type, 2 > | data () |
|
constexpr void | setX (Type x) |
|
constexpr void | setY (Type y) |
|
constexpr bool | fuzzyCompare (const Vector2 &v2, Type eps) const |
|
constexpr void | setValues (const Type x, const Type y) |
|
constexpr void | setValues (const ranges::span< const Type, 2 > v) |
|
constexpr void | getValues (ranges::span< Type, 2 > v) const |
|
constexpr void | scale (Type s) |
|
constexpr void | add (const Vector2 &t) |
|
constexpr Type | lengthSquared () const |
| Length squared.
|
|
constexpr Type | length () const |
|
constexpr Vector2 & | normalize () |
| Normalization.
|
|
constexpr Vector2 & | operator+= (const Vector2 &v) |
| Addition.
|
|
constexpr Vector2 & | operator-= (const Vector2 &v) |
| Subtraction.
|
|
constexpr Vector2 | operator- () const |
| Unary negation.
|
|
constexpr Vector2 & | operator*= (Type v) |
| Scalar multiplication.
|
|
constexpr Vector2 & | operator/= (Type v) |
| Scalar division.
|
|
template<class Type>
class STK::Vector2< Type >
Vector2 - Generic 3D Vector.