playrho::detail::RayCastInput< N > Struct Template Reference
Ray-cast input data for N-dimensions. More...
#include <AABB.hpp>
Public Attributes | |
Vector< Length, N > | p1 |
Point 1. More... | |
Vector< Length, N > | p2 |
Point 2. More... | |
UnitInterval< Real > | maxFraction = UnitInterval<Real>{0} |
Max fraction. More... | |
Related Functions | |
(Note that these are not member functions.) | |
AABB | GetAABB (const playrho::detail::RayCastInput< 2 > &input) noexcept |
Gets the AABB for the given ray cast input data. More... | |
Detailed Description
template<std::size_t N>
struct playrho::detail::RayCastInput< N >
Ray-cast input data for N-dimensions.
- Note
- The ray extends from
p1
top1 + maxFraction * (p2 - p1)
.
- Examples
- World.cpp.
Friends And Related Function Documentation
◆ GetAABB()
template<std::size_t N>
|
related |
Member Data Documentation
◆ p1
template<std::size_t N>
Vector<Length, N> playrho::detail::RayCastInput< N >::p1 |
Point 1.
Definition at line 39 of file RayCastInput.hpp.
◆ p2
template<std::size_t N>
Vector<Length, N> playrho::detail::RayCastInput< N >::p2 |
Point 2.
Definition at line 40 of file RayCastInput.hpp.
◆ maxFraction
template<std::size_t N>
UnitInterval<Real> playrho::detail::RayCastInput< N >::maxFraction = UnitInterval<Real>{0} |
Max fraction.
Unit interval value - a value between 0 and 1 inclusive.
Definition at line 44 of file RayCastInput.hpp.
The documentation for this struct was generated from the following files:
- Collision/AABB.hpp
- Collision/RayCastInput.hpp