template<UnsignedInt dimensions>
InvertedSphere class
Inverted sphere defined by position and radius.
Contents
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.