template<UnsignedInt dimensions>
Magnum::Shapes::AxisAlignedBox class

Axis-aligned box.

See Collision detection for brief introduction.

Public types

enum (anonymous): UnsignedInt { Dimensions = dimensions }

Constructors, destructors, conversion operators

AxisAlignedBox() constexpr
Default constructor.
AxisAlignedBox(const VectorTypeFor<dimensions, Float>& min, const typename DimensionTraits<dimensions, Float>::VectorType& max) constexpr
Constructor.

Public functions

auto transformed(const MatrixTypeFor<dimensions, Float>& matrix) const -> AxisAlignedBox<dimensions>
Transformed shape.
auto min() const -> VectorTypeFor<dimensions, Float> constexpr
Minimal coordinates.
void setMin(const VectorTypeFor<dimensions, Float>& min)
Set minimal coordinates.
auto max() const -> VectorTypeFor<dimensions, Float> constexpr
Maximal coordinates.
void setMax(const VectorTypeFor<dimensions, Float>& max)
Set maximal coordinates.
auto operator%(const Point<dimensions>& other) const -> bool
Collision occurence with point.

Enum documentation

template<UnsignedInt dimensions>
enum Magnum::Shapes::AxisAlignedBox<dimensions>::(anonymous): UnsignedInt

Enumerators
Dimensions

Dimension count

Function documentation

template<UnsignedInt dimensions>
Magnum::Shapes::AxisAlignedBox<dimensions>::AxisAlignedBox() constexpr

Default constructor.

Creates zero sized box positioned at origin.