#include <Magnum/Array.h>
template<class T>
Array3D class
Three-dimensional array.
Template parameters | |
---|---|
T | Data type |
Base classes
-
template<UnsignedInt dimensions, class T>class Array<3, T> deprecated in Git master
- Array.
Constructors, destructors, conversion operators
- Array3D() constexpr
- Default constructor.
- Array3D(T x, T y, T z) constexpr
- Constructor.
-
Array3D(const Math::
Vector3<T>& vector) constexpr - Construct from a vector.
- Array3D(T value) constexpr
- Initializer-list constructor.
- operator Math::Vector3<T>() const
- Convert to a vector.
Public functions
Function documentation
template<class T>
Magnum:: Array3D<T>:: Array3D() constexpr
Default constructor.
Sets all components to their default-constructed values.
template<class T>
Magnum:: Array3D<T>:: Array3D(T x,
T y,
T z) constexpr
Constructor.
Parameters | |
---|---|
x | X component |
y | Y component |
z | Z component |
template<class T>
T Magnum:: Array3D<T>:: x() const constexpr
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<class T>
T Magnum:: Array3D<T>:: y() const constexpr
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<class T>
T Magnum:: Array3D<T>:: z() const constexpr
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<class T>
template<class T>
Debug& operator<<(Debug& debug,
const Array3D<T>& value)
Debug output operator.