RayCastOutput.hpp File Reference

Go to the source code of this file.

Classes

struct  playrho::detail::AABB< N >
 N-dimensional Axis Aligned Bounding Box. More...
 
struct  playrho::d2::RayCastHit
 Ray-cast hit data. More...
 

Namespaces

 playrho
 
 playrho::detail
 
 playrho::d2
 

Typedefs

using playrho::d2::RayCastOutput = Optional< RayCastHit >
 Ray cast output. More...
 
using playrho::d2::DynamicTreeRayCastCB = std::function< Real(Fixture *fixture, ChildCounter child, const RayCastInput &input)>
 Ray cast callback function. More...
 
using playrho::d2::FixtureRayCastCB = std::function< RayCastOpcode(Fixture *fixture, ChildCounter child, Length2 point, UnitVec normal)>
 Ray cast callback function signature. More...
 

Enumerations

enum  playrho::RayCastOpcode { playrho::RayCastOpcode::Terminate, playrho::RayCastOpcode::IgnoreFixture, playrho::RayCastOpcode::ClipRay, playrho::RayCastOpcode::ResetRay }
 Ray cast opcode enumeration. More...
 

Functions

RayCastOutput playrho::d2::RayCast (Length radius, Length2 location, const RayCastInput &input) noexcept
 Cast a ray against a circle of a given radius at the given location. More...
 
RayCastOutput playrho::d2::RayCast (const detail::AABB< 2 > &aabb, const RayCastInput &input) noexcept
 Cast a ray against the given AABB. More...
 
RayCastOutput playrho::d2::RayCast (const DistanceProxy &proxy, const RayCastInput &input, const Transformation &transform) noexcept
 Cast a ray against the distance proxy. More...
 
RayCastOutput playrho::d2::RayCast (const Shape &shape, ChildCounter childIndex, const RayCastInput &input, const Transformation &transform) noexcept
 Cast a ray against the child of the given shape. More...
 
bool playrho::d2::RayCast (const DynamicTree &tree, RayCastInput input, const DynamicTreeRayCastCB &callback)
 Cast rays against the leafs in the given tree. More...
 
bool playrho::d2::RayCast (const DynamicTree &tree, const RayCastInput &input, FixtureRayCastCB callback)
 Ray-cast the dynamic tree for all fixtures in the path of the ray. More...
 

Detailed Description

Declaration of the RayCastOutput structure and related free functions.

Definition in file RayCastOutput.hpp.