This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

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

Inverted sphere defined by position and radius.

Inverted version of Sphere, detecting collisions on the outside, not on the inside. See Collision detection for brief introduction.

Base classes

template<UnsignedInt dimensions>
class Sphere
Sphere defined by position and radius.

Constructors, destructors, conversion operators

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

Public functions

auto transformed(const MatrixTypeFor<dimensions, Float>& matrix) const -> InvertedSphere<dimensions>
Transformed shape.
auto operator%(const Point<dimensions>& other) const -> bool
Collision occurence with point.
auto operator/(const Point<dimensions>& other) const -> Collision<dimensions>
Collision with point.
auto operator%(const Sphere<dimensions>& other) const -> bool
Collision occurence with sphere.
auto operator/(const Sphere<dimensions>& other) const -> Collision<dimensions>
Collision with sphere.

Function documentation

template<UnsignedInt dimensions>
Magnum::Shapes::InvertedSphere<dimensions>::InvertedSphere() defaulted constexpr

Default constructor.

Creates zero-sized sphere at origin.