Hermes
|
Geometric 4-dimensional point (x, y, z, w) More...
Public Member Functions | |
HERMES_DEVICE_CALLABLE | Vector4 () |
Default constructor. | |
HERMES_DEVICE_CALLABLE | Vector4 (T _x, T _y, T _z, T _w) |
Construct from component values. More... | |
HERMES_DEVICE_CALLABLE Vector4< T > & | operator+= (const Vector4< T > &v) |
HERMES_DEVICE_CALLABLE Vector4< T > & | operator-= (const Vector4< T > &v) |
HERMES_DEVICE_CALLABLE Vector4< T > & | operator*= (T f) |
HERMES_DEVICE_CALLABLE Vector4< T > & | operator/= (T f) |
HERMES_DEVICE_CALLABLE Vector4< T > | operator- () const |
HERMES_DEVICE_CALLABLE Vector4< T > | operator+ (const Vector4< T > &b) |
HERMES_DEVICE_CALLABLE Vector4< T > | operator- (const Vector4< T > &b) |
HERMES_DEVICE_CALLABLE Vector4< T > | operator* (T f) |
HERMES_DEVICE_CALLABLE Vector4< T > | operator/ (T f) |
HERMES_DEVICE_CALLABLE T | operator[] (int i) const |
Get i-th component. More... | |
HERMES_DEVICE_CALLABLE T & | operator[] (int i) |
Get i-th component reference. More... | |
HERMES_DEVICE_CALLABLE Vector2< T > | xy () |
Gets first 2 components. More... | |
HERMES_DEVICE_CALLABLE Vector3< T > | xyz () |
Gets first 3 components. More... | |
HERMES_DEVICE_CALLABLE T | length2 () const |
Computes vector squared magnitude. More... | |
HERMES_DEVICE_CALLABLE T | length () const |
Computes vector magnitude. More... | |
Public Attributes | |
T | x = T(0.0) |
0-th component | |
T | y = T(0.0) |
1-th component | |
T | z = T(0.0) |
2-th component | |
T | w = T(0.0) |
3-th component | |
Additional Inherited Members | |
Static Public Member Functions inherited from hermes::MathElement< T, 4 > | |
static constexpr u64 | componentCount () |
Gets the number of dimensional components. More... | |
static constexpr u64 | numericTypeSizeInBytes () |
Gets the size in bytes of underlying data type. More... | |
static MemoryDumper::RegionLayout | memoryDumpLayout () |
Gets memory layout. More... | |
Static Public Attributes inherited from hermes::MathElement< T, 4 > | |
static T | numeric_data |
Underlying data type. | |
Geometric 4-dimensional point (x, y, z, w)
T |
|
inline |
Construct from component values.
_x | |
_y | |
_z | |
_w |
|
inline |
Computes vector magnitude.
|
inline |
Computes vector squared magnitude.
|
inline |
Get i-th component reference.
i
is not checked i | component index in [0, 3] |
|
inline |
Get i-th component.
i
is not checked i | component index in [0, 3] |
|
inline |
Gets first 2 components.
|
inline |
Gets first 3 components.