sculpto
|
#include <vec4.h>
Public Member Functions | |
T | SetX (T X) |
T | SetY (T Y) |
T | SetZ (T Z) |
T | SetW (T W) |
T | GetX () const |
T | GetY () const |
T | GetZ () const |
T | GetW () const |
vec4 ()=default | |
vec4 (T A) | |
vec4 (T X, T Y, T Z, T W) | |
vec4 (const vec3< T > &V, T W) | |
vec4 (T X, const vec3< T > &V) | |
vec4 (const vec4 &Other) | |
vec4 & | operator= (const vec4 &Other) |
bool | operator== (const vec4 &Other) |
const vec4 | operator- () const |
const vec4 | operator+ (const vec4 &Other) const |
const vec4 & | operator+= (const vec4 &Other) |
const vec4 | operator+ (float Scalar) const |
const vec4 & | operator+= (float Scalar) |
const vec4 | operator- (const vec4 &Other) const |
const vec4 & | operator-= (const vec4 &Other) |
const vec4 | operator- (float Scalar) const |
const vec4 & | operator-= (float Scalar) |
const vec4 | operator* (const vec4 &Other) const |
const vec4 & | operator*= (const vec4 &Other) |
const vec4 | operator* (float Scalar) const |
const vec4 & | operator*= (float Scalar) |
const vec4 | operator/ (const vec4 &Other) const |
const vec4 & | operator/= (const vec4 &Other) |
const vec4 | operator/ (float Scalar) const |
const vec4 & | operator/= (float Scalar) |
operator T* () | |
T & | operator[] (int Index) |
T | operator[] (int Index) const |
Static Public Member Functions | |
static vec4 | Zero () |
static vec4 | Rnd (T Min=0, T Max=1) |
static vec4 | Min (const vec4 &A, const vec4 &B) |
static vec4 | Max (const vec4 &A, const vec4 &B) |
Public Attributes | |
T | X { 0 } |
T | Y { 0 } |
T | Z { 0 } |
T | W { 0 } |
|
default |
Vector construcotrs.
Default construcotr. All coodinates would ve set to zero.
|
inlineexplicit |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
A,B | - vectors to take maximums of components. |
|
inlinestatic |
A,B | - vectors to take minimums of components. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
T scl::math::vec4< T >::W { 0 } |
T scl::math::vec4< T >::X { 0 } |
T scl::math::vec4< T >::Y { 0 } |
T scl::math::vec4< T >::Z { 0 } |