|
constexpr | float2 (float xy=0.0f) noexcept |
| Creates a new floating point 2 component vector structure.
|
|
constexpr | float2 (float x, float y) noexcept |
| Creates a new floating point 2 component vector structure.
|
|
constexpr | float2 (uint2 xy) noexcept |
| Creates a new floating point 2 component vector structure.
|
|
constexpr | float2 (int2 xy) noexcept |
| Creates a new floating point 2 component vector structure.
|
|
float & | operator[] (psize i) noexcept |
| Returns vector component by index.
|
|
float | operator[] (psize i) const noexcept |
| Returns vector component by index.
|
|
constexpr | operator uint2 () const noexcept |
| Returns as 2 component unsigned integer vector. (xy)
|
|
constexpr | operator int2 () const noexcept |
| Returns as 2 component signed integer vector. (xy)
|
|
constexpr | operator uint32 () const noexcept |
| Returns first vector component as unsigned integer. (x)
|
|
constexpr | operator int32 () const noexcept |
| Returns first vector component as signed integer. (x)
|
|
constexpr | operator float () const noexcept |
| Returns first vector component value. (x)
|
|
constexpr float2 | operator+ (float2 v) const noexcept |
|
constexpr float2 | operator- (float2 v) const noexcept |
|
constexpr float2 | operator* (float2 v) const noexcept |
|
constexpr float2 | operator/ (float2 v) const noexcept |
|
constexpr float2 | operator+ (float n) const noexcept |
|
constexpr float2 | operator- (float n) const noexcept |
|
constexpr float2 | operator* (float n) const noexcept |
|
constexpr float2 | operator/ (float n) const noexcept |
|
constexpr float2 | operator- () const noexcept |
|
float2 & | operator+= (float2 v) noexcept |
|
float2 & | operator-= (float2 v) noexcept |
|
float2 & | operator*= (float2 v) noexcept |
|
float2 & | operator/= (float2 v) noexcept |
|
float2 & | operator+= (float n) noexcept |
|
float2 & | operator-= (float n) noexcept |
|
float2 & | operator*= (float n) noexcept |
|
float2 & | operator/= (float n) noexcept |
|
float2 & | operator= (float n) noexcept |
|
constexpr bool | operator== (float2 v) const noexcept |
|
constexpr bool | operator!= (float2 v) const noexcept |
|
constexpr uint2 | operator< (float2 v) const noexcept |
|
constexpr uint2 | operator> (float2 v) const noexcept |
|
constexpr uint2 | operator<= (float2 v) const noexcept |
|
constexpr uint2 | operator>= (float2 v) const noexcept |
|
constexpr bool | operator== (float n) const noexcept |
|
constexpr bool | operator!= (float n) const noexcept |
|
constexpr uint2 | operator< (float n) const noexcept |
|
constexpr uint2 | operator> (float n) const noexcept |
|
constexpr uint2 | operator<= (float n) const noexcept |
|
constexpr uint2 | operator>= (float n) const noexcept |
|
Floating point 2 component vector structure.
Commonly used to represent: points, positions, directions, velocities, etc.