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

Point.

See Collision detection for brief introduction.

Public types

enum (anonymous): UnsignedInt { Dimensions = dimensions }

Constructors, destructors, conversion operators

Point() constexpr
Default constructor.
Point(const VectorTypeFor<dimensions, Float>& position) constexpr
Constructor.

Public functions

auto transformed(const MatrixTypeFor<dimensions, Float>& matrix) const -> Point<dimensions>
Transformed shape.
auto position() const -> VectorTypeFor<dimensions, Float> constexpr
Position.
void setPosition(const VectorTypeFor<dimensions, Float>& position)
Set position.

Enum documentation

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

Enumerators
Dimensions

Dimension count

Function documentation

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

Default constructor.

Creates point at origin.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
bool operator%(const Point<dimensions>& a, const AxisAlignedBox<dimensions>& b)

Collision occurence of Point and AxisAlignedBox.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
bool operator%(const Point<dimensions>& a, const Capsule<dimensions>& b)

Collision occurence of Point and Capsule.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
bool operator%(const Point<dimensions>& a, const Cylinder<dimensions>& b)

Collision occurence of Point and Cylinder.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
bool operator%(const Point<dimensions>& a, const Sphere<dimensions>& b)

Collision occurence of Point and Sphere.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
bool operator%(const Point<dimensions>& a, const InvertedSphere<dimensions>& b)

Collision occurence of Point and InvertedSphere.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
Collision<dimensions> operator/(const Point<dimensions>& a, const Sphere<dimensions>& b)

Collision of Point and Sphere.

template<UnsignedInt dimensions> template<UnsignedInt dimensions>
Collision<dimensions> operator/(const Point<dimensions>& a, const InvertedSphere<dimensions>& b)

Collision of Point and InvertedSphere.