Hermes
|
Geometric 2-dimensional normal (nx, ny) More...
Public Member Functions | |
HERMES_DEVICE_CALLABLE | Normal2 () |
Default constructor. | |
HERMES_DEVICE_CALLABLE | Normal2 (T _x, T _y) |
Constructs from component values. More... | |
HERMES_DEVICE_CALLABLE | Normal2 (const Vector2< T > &v) |
Constructs from vector. More... | |
HERMES_DEVICE_CALLABLE | operator Vector2< T > () const |
Casts to vector. More... | |
HERMES_DEVICE_CALLABLE Normal2 | operator- () const |
HERMES_DEVICE_CALLABLE Normal2 & | operator*= (T f) |
HERMES_DEVICE_CALLABLE Normal2 & | operator/= (T f) |
Public Attributes | |
T | x {0} |
0-th normal component | |
T | y {0} |
1-th normal component | |
Additional Inherited Members | |
Static Public Member Functions inherited from hermes::MathElement< T, 2u > | |
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, 2u > | |
static T | numeric_data |
Underlying data type. | |
Geometric 2-dimensional normal (nx, ny)
T |
|
inline |
Constructs from component values.
_x | |
_y |
|
inline |
Constructs from vector.
v |
|
inlineexplicit |
Casts to vector.