20 #ifndef ANTKEEPER_PHYSICS_PLANE_COLLIDER_HPP
21 #define ANTKEEPER_PHYSICS_PLANE_COLLIDER_HPP
59 m_plane{normal, constant}
Abstract base class for collision objects.
constexpr plane_collider(const plane_type &plane) noexcept
Constructs a plane collider from a plane.
constexpr plane_collider(const math::fvec3 &normal, float constant) noexcept
Constructs a plane collider from a normal and constant.
constexpr collider_type type() const noexcept override
Returns the collider type.
constexpr void set_plane(const plane_type &plane) noexcept
Sets the collider's plane.
constexpr const math::fvec3 & get_normal() const noexcept
Returns the plane normal, in object space.
constexpr plane_collider(const math::fvec3 &normal) noexcept
Constructs a plane collider from a normal and constant.
constexpr plane_collider() noexcept=default
Constructs a plane collider from a normal and constant.
constexpr void set_constant(float constant) noexcept
Sets the plane constant.
constexpr float get_constant() const noexcept
Returns the plane constant.
constexpr const plane_type & get_plane() const noexcept
Returns the plane shape.
geom::plane< float > plane_type
Plane type.
constexpr void set_normal(const math::fvec3 &normal) noexcept
Sets the plane normal.
Mathematical functions and data types.
T offset(T longitude)
Calculates the UTC offset at a given longitude.
collider_type
Collider types.
T constant
Hyperplane constant.
vector_type normal
Hyperplane normal.