|
Hermes
|
Geometric 3-dimensional normal (nx, ny, nz) More...
#include <normal.h>
Inheritance diagram for hermes::Normal3< T >:Public Member Functions | |
| HERMES_DEVICE_CALLABLE | Normal3 () |
| Default constructor. | |
| HERMES_DEVICE_CALLABLE | Normal3 (T _x, T _y, T _z) |
| Constructs from component values. | |
| HERMES_DEVICE_CALLABLE | Normal3 (const Vector3< T > &v) |
| Constructs from vector. | |
| HERMES_DEVICE_CALLABLE | operator Vector3< T > () const |
| Casts to vector. | |
| HERMES_DEVICE_CALLABLE Normal3 | operator- () const |
| HERMES_DEVICE_CALLABLE Normal3 & | operator+= (const Vector3< T > &v) |
| HERMES_DEVICE_CALLABLE Normal3 & | operator*= (T f) |
| HERMES_DEVICE_CALLABLE Normal3 & | operator/= (T f) |
| HERMES_DEVICE_CALLABLE bool | operator!= (const Normal3 &n) const |
| HERMES_DEVICE_CALLABLE Vector3< T > | reflect (const Vector3< T > &v) |
| reflects v from this | |
| HERMES_DEVICE_CALLABLE Vector3< T > | project (const Vector3< T > &v) |
| projects v on the surface with this normal | |
| HERMES_DEVICE_CALLABLE void | tangential (Vector3< T > &a, Vector3< T > &b) |
| compute the two orthogonal-tangential vectors from this | |
Public Attributes | |
| T | x {0} |
| 0-th normal component | |
| T | y {0} |
| 1-th normal component | |
| T | z {0} |
| 2-th normal component | |
Geometric 3-dimensional normal (nx, ny, nz)
| T |
|
inline |
Constructs from component values.
| _x | |
| _y | |
| _z |
|
inlineexplicit |
Constructs from vector.
| v |
|
inlineexplicit |
Casts to vector.
|
inline |
projects v on the surface with this normal
| v | vector |
|
inline |
reflects v from this
| v | vector to be reflected |
|
inline |
compute the two orthogonal-tangential vectors from this
| a | [out] first tangent |
| b | [out] second tangent |