template<UnsignedInt dimensions>
LineSegment class
Line segment, defined by starting and ending point.
Contents
See Collision detection for brief introduction.
Base classes
-
template<UnsignedInt dimensions>class Line
- Infinite line, defined by two points.
Constructors, destructors, conversion operators
- LineSegment() constexpr
- Default constructor.
- LineSegment(const VectorTypeFor<dimensions, Float>& a, const VectorTypeFor<dimensions, Float>& b) constexpr
- Constructor.
Public functions
- auto transformed(const MatrixTypeFor<dimensions, Float>& matrix) const -> LineSegment<dimensions>
- Transformed shape.
Function documentation
template<UnsignedInt dimensions>
Magnum:: Shapes:: LineSegment<dimensions>:: LineSegment() constexpr
Default constructor.
Creates line segment with both points at origin.
template<UnsignedInt dimensions>
bool operator%(const LineSegment3D& a,
const Plane& b)
Collision occurence of LineSegment and Plane.
template<UnsignedInt dimensions>
template<UnsignedInt dimensions>
bool operator%(const LineSegment<dimensions>& a,
const Sphere<dimensions>& b)
Collision occurence of LineSegment and Sphere.