|
Hermes
|
Geometric 2-dimensional point (x, y) More...
#include <point.h>
Inheritance diagram for hermes::Point2< T >:Public Member Functions | |
| HERMES_DEVICE_CALLABLE | Point2 (T f=T(0)) |
| Constructs from single component value. | |
| HERMES_DEVICE_CALLABLE | Point2 (const real_t *v) |
| Constructs from component array. | |
| HERMES_DEVICE_CALLABLE | Point2 (real_t _x, real_t _y) |
| Constructs from component values. | |
| template<typename U > | |
| HERMES_DEVICE_CALLABLE | Point2 (const Index2< U > &index) |
| Constructs from index2. | |
| template<typename U > | |
| HERMES_DEVICE_CALLABLE | operator Index2< U > () const |
| Casts to index2. | |
| template<typename U > | |
| HERMES_DEVICE_CALLABLE Point2 & | operator= (const Index2< U > &index) |
| Copy assigns from index 2. | |
| HERMES_DEVICE_CALLABLE const T & | operator[] (int i) const |
| Get i-th component. | |
| HERMES_DEVICE_CALLABLE T & | operator[] (int i) |
| Get i-th component reference. | |
| HERMES_DEVICE_CALLABLE Vector2< T > | operator- (const Point2< T > &b) const |
| HERMES_DEVICE_CALLABLE bool | operator== (const Point2< T > &b) const |
Public Attributes | |
| T | x = T(0.0) |
| 0-th component | |
| T | y = T(0.0) |
| 1-th 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 point (x, y)
| T |
Forward declaration of Point2
| T |
|
inlineexplicit |
Constructs from single component value.
| f |
|
inlineexplicit |
Constructs from component array.
| v |
|
inline |
Constructs from component values.
| _x | |
| _y |
|
inline |
Constructs from index2.
| U |
| index |
|
inline |
Casts to index2.
| U |
|
inline |
Copy assigns from index 2.
| U |
| index |
|
inline |
Get i-th component reference.
i is not checked | i | component index in [0, 1] |
|
inline |
Get i-th component.
i is not checked | i | component index in [0, 1] |