class
PlaneInfinite plane, defined by position and normal (3D only)
Contents
Unlike other elements the plane expects uniform scaling. See Collision detection for brief introduction.
Public types
- enum (anonymous): UnsignedInt { Dimensions = 3 }
Constructors, destructors, conversion operators
Public functions
- auto transformed(const Matrix4& matrix) const -> Plane
- Transformed shape.
- auto position() const -> Vector3 constexpr
- Position.
- void setPosition(const Vector3& position)
- Set position.
- auto normal() const -> Vector3 constexpr
- Normal.
- void setNormal(const Vector3& normal)
- Set normal.
- auto operator%(const Line3D& other) const -> bool
- Collision occurence with line.
- auto operator%(const LineSegment3D& other) const -> bool
- Collision occurence with line segment.
Enum documentation
enum Magnum:: Shapes:: Plane:: (anonymous): UnsignedInt
Enumerators | |
---|---|
Dimensions |
Dimension count |
Function documentation
Magnum:: Shapes:: Plane:: Plane() constexpr
Default constructor.
Creates plane with zero-sized normal at origin.