#include <StkVector2.h>
|  | 
| 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. 
 | 
|  | 
|  | 
| static constexpr Type | angle (const Vector2 &v1, const Vector2 &v2) | 
|  | Computing angle between two vectors (in radians) 
 | 
|  | 
| static constexpr Type | dot (const Vector2 &v1, const Vector2 &v2) | 
|  | Computing dot product. 
 | 
|  | 
| static constexpr Type | cross (const Vector2 &v1, const Vector2 &v2) | 
|  | Computing 2D cross product (scalar). 
 | 
|  | 
|  | 
| static constexpr std::size_t | vector_size = 2 | 
|  | 
|  | 
| std::array< Type, 2 > | data_ { 0, 0 } | 
|  | 
template<class Type>
class STK::Vector2< Type >
Vector2 - Generic 3D Vector. 
The documentation for this class was generated from the following file:
- Native/SilentToolkit/StkMath/StkVector2.h