|
Hermes
|
Geometric 2-dimensional normal (nx, ny) More...
#include <normal.h>
Inheritance diagram for hermes::Normal2< T >:Public Member Functions | |
| HERMES_DEVICE_CALLABLE | Normal2 () |
| Default constructor. | |
| HERMES_DEVICE_CALLABLE | Normal2 (T _x, T _y) |
| Constructs from component values. | |
| HERMES_DEVICE_CALLABLE | Normal2 (const Vector2< T > &v) |
| Constructs from vector. | |
| HERMES_DEVICE_CALLABLE | operator Vector2< T > () const |
| Casts to vector. | |
| 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. | |
| static constexpr u64 | numericTypeSizeInBytes () |
| Gets the size in bytes of underlying data type. | |
| static MemoryDumper::RegionLayout | memoryDumpLayout () |
| Gets memory layout. | |
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.