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< RealmaxFraction = 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 to p1 + maxFraction * (p2 - p1).
Examples
World.cpp.

Definition at line 39 of file AABB.hpp.

Friends And Related Function Documentation

◆ GetAABB()

template<std::size_t N>
AABB GetAABB ( const playrho::detail::RayCastInput< 2 > &  input)
related

Gets the AABB for the given ray cast input data.

<2>

Definition at line 106 of file AABB.cpp.

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: