|
|
constexpr __host__ __device__ | Vector3 ()=default |
| | Constructs the zero vector.
|
| constexpr __host__ __device__ | Vector3 (const T &ax, const T &ay, const T &az) |
| | Constructs the triplet (ax,ay,az).
|
| constexpr __host__ __device__ | Vector3 (const T &v) |
| | Constructs the instance with the triplet (v,v,v).
|
| constexpr | Vector3 (const std::array< T, 3 > &v) |
| | Constructs the instance with the array v.
|
| constexpr | Vector3 (std::initializer_list< T > v) |
| | Constructs the instance with the list v.
|
| constexpr Vector3 & | operator= (std::initializer_list< T > v) |
| | Positions the instance with the list v.
|
| constexpr __host__ __device__ void | operator+= (const T &b) |
| | Adds b to the instance.
|
| constexpr __host__ __device__ void | operator+= (const ThatClass &b) |
| | Adds b to the instance.
|
| constexpr __host__ __device__ void | operator-= (const T &b) |
| | Subtracts b from the instance.
|
| constexpr __host__ __device__ void | operator-= (const ThatClass &b) |
| | Subtracts b from the instance.
|
| constexpr __host__ __device__ void | operator*= (const T &b) |
| | Multiplies each component of the instance by b.
|
| constexpr __host__ __device__ void | operator/= (const T &b) |
| | Divides each component of the instance by b.
|
| constexpr __host__ __device__ ThatClass | operator- () const |
| | Returns the opposite of the instance.
|
|
| constexpr __host__ __device__ bool | operator< (const Vector3< T > &v1, const Vector3< T > &v2) |
| std::ostream & | operator<< (std::ostream &o, const Vector3< T > &t) |
| | Writes the triplet t to the stream o.
|
| constexpr __host__ __device__ bool | operator== (const Vector3< T > &v1, const Vector3< T > &v2) |
| constexpr __host__ __device__ bool | operator!= (const Vector3< T > &v1, const Vector3< T > &v2) |
| constexpr __host__ __device__ ThatClass | operator+ (const ThatClass &a, const ThatClass &b) |
| | Sums component by component of a and b.
|
| constexpr __host__ __device__ ThatClass | operator+ (const ThatClass &a, const T &b) |
| | Returns a by adding b to each component.
|
| constexpr __host__ __device__ ThatClass | operator+ (const T &a, const ThatClass &b) |
| | Returns b by adding a to each component.
|
| constexpr __host__ __device__ ThatClass | operator- (const ThatClass &a, const ThatClass &b) |
| | Subtracts each component of a by each component of b.
|
| constexpr __host__ __device__ ThatClass | operator- (const ThatClass &a, const T &b) |
| | Subtracts each component of a by b.
|
| constexpr __host__ __device__ ThatClass | operator* (const T &a, const ThatClass &b) |
| | Multiplies each component of b by a.
|
| constexpr __host__ __device__ ThatClass | operator* (const ThatClass &a, const T &b) |
| | Multiplies each component of a by b.
|
| constexpr __host__ __device__ ThatClass | operator/ (const ThatClass &a, const T &b) |
| | Divides each component of a by b.
|
template<typename T>
class Arcane::Vector3< T >
Class managing a 3-dimensional vector of type T.
The 3 elements of the vector can be accessed via x, y, or z.
Definition at line 36 of file Vector3.h.