template<class T>
Magnum::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

auto x() -> T&
X component.
auto x() const -> T constexpr
auto y() -> T&
Y component.
auto y() const -> T constexpr
auto z() -> T&
Z component.
auto z() const -> T constexpr
auto xy() -> Array2D<T>&
XY part of the array.
auto xy() const -> Array2D<T> constexpr

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>
Array2D<T>& Magnum::Array3D<T>::xy()

XY part of the array.

Returns First two components of the array

template<class T>
Array2D<T> Magnum::Array3D<T>::xy() 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.