Hermes
hermes::Normal2< T > Class Template Reference

Geometric 2-dimensional normal (nx, ny) More...

+ 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. 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 Normal2operator*= (T f)
 
HERMES_DEVICE_CALLABLE Normal2operator/= (T f)
 

Public Attributes

x {0}
 0-th normal component
 
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.
 

Detailed Description

template<typename T>
class hermes::Normal2< T >

Geometric 2-dimensional normal (nx, ny)

Template Parameters
T

Constructor & Destructor Documentation

◆ Normal2() [1/2]

template<typename T >
HERMES_DEVICE_CALLABLE hermes::Normal2< T >::Normal2 ( _x,
_y 
)
inline

Constructs from component values.

Parameters
_x
_y

◆ Normal2() [2/2]

template<typename T >
HERMES_DEVICE_CALLABLE hermes::Normal2< T >::Normal2 ( const Vector2< T > &  v)
inline

Constructs from vector.

Parameters
v

Member Function Documentation

◆ operator Vector2< T >()

template<typename T >
HERMES_DEVICE_CALLABLE hermes::Normal2< T >::operator Vector2< T > ( ) const
inlineexplicit

Casts to vector.

Returns

The documentation for this class was generated from the following file: