A class for the representation of a 3D Vec3.
More...
#include <vec3.hpp>
A class for the representation of a 3D Vec3.
Definition at line 22 of file vec3.hpp.
◆ Vec3() [1/3]
KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 |
( |
| ) |
|
|
inline |
◆ Vec3() [2/3]
◆ Vec3() [3/3]
KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 |
( |
const scalar |
constValue | ) |
|
|
inlineexplicit |
◆ data() [1/2]
Returns pointer to the data of the vector.
- Returns
- point to the first scalar
Definition at line 55 of file vec3.hpp.
◆ data() [2/2]
const scalar * NeoN::Vec3::data |
( |
| ) |
const |
|
inline |
Returns pointer to the data of the vector.
- Returns
- point to the first scalar
Definition at line 62 of file vec3.hpp.
◆ operator()() [1/2]
KOKKOS_INLINE_FUNCTION scalar & NeoN::Vec3::operator() |
( |
const size_t |
i | ) |
|
|
inline |
◆ operator()() [2/2]
KOKKOS_INLINE_FUNCTION scalar NeoN::Vec3::operator() |
( |
const size_t |
i | ) |
const |
|
inline |
◆ operator*() [1/2]
KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator* |
( |
const label & |
rhs | ) |
const |
|
inline |
◆ operator*() [2/2]
KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator* |
( |
const scalar & |
rhs | ) |
const |
|
inline |
◆ operator*=()
KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator*= |
( |
const scalar & |
rhs | ) |
|
|
inline |
◆ operator+()
KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator+ |
( |
const Vec3 & |
rhs | ) |
const |
|
inline |
◆ operator+=()
KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator+= |
( |
const Vec3 & |
rhs | ) |
|
|
inline |
◆ operator-()
KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator- |
( |
const Vec3 & |
rhs | ) |
const |
|
inline |
◆ operator-=()
KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator-= |
( |
const Vec3 & |
rhs | ) |
|
|
inline |
◆ operator==()
KOKKOS_INLINE_FUNCTION bool NeoN::Vec3::operator== |
( |
const Vec3 & |
rhs | ) |
const |
|
inline |
◆ operator[]() [1/2]
KOKKOS_INLINE_FUNCTION scalar & NeoN::Vec3::operator[] |
( |
const size_t |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
KOKKOS_INLINE_FUNCTION scalar NeoN::Vec3::operator[] |
( |
const size_t |
i | ) |
const |
|
inline |
◆ size()
constexpr size_t NeoN::Vec3::size |
( |
| ) |
const |
|
inlineconstexpr |
Returns the size of the vector.
- Returns
- The size of the vector
Definition at line 69 of file vec3.hpp.
The documentation for this class was generated from the following file:
- /home/runner/work/NeoN/NeoN/include/NeoN/core/primitives/vec3.hpp