PlayRho  2.0.0
An interactive physics engine & library.
playrho::detail::RayCastInput< N > Struct Template Reference

Ray-cast input data for N-dimensions. More...

#include <playrho/detail/RayCastInput.hpp>

Collaboration diagram for playrho::detail::RayCastInput< N >:
[legend]

Public Attributes

UnitInterval< RealmaxFraction
 Max fraction. More...
 
Vector< Length, N > p1
 Point 1.
 
Vector< Length, N > p2
 Point 2.
 

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. <2>
 

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).

Member Data Documentation

◆ maxFraction

template<std::size_t N>
UnitInterval<Real> playrho::detail::RayCastInput< N >::maxFraction

Max fraction.

Unit interval value - a value between 0 and 1 inclusive.

Referenced by playrho::d2::RayCast(), and playrho::d2::World::RayCast().


The documentation for this struct was generated from the following files: