PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::detail::RayCastInput< N > Struct Template Reference

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

#include <RayCastInput.hpp>

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

Public Attributes

Vector< Length, N > p1
 Point 1.
 
Vector< Length, N > p2
 Point 2.
 
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. <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).
Examples
World.cpp.

Member Data Documentation

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

Referenced by playrho::d2::RayCast().


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