Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
RayCastT< Vec, Mat, RayCastType > Struct Template Reference

Structure that holds a single ray cast. More...

#include <RayCast.h>

Public Member Functions

JPH_OVERRIDE_NEW_DELETE RayCastT ()=default
 Constructors. More...
 
 RayCastT (typename Vec::ArgType inOrigin, Vec3Arg inDirection)
 
 RayCastT (const RayCastT< Vec, Mat, RayCastType > &)=default
 
RayCastType Transformed (typename Mat::ArgType inTransform) const
 Transform this ray using inTransform. More...
 
RayCastType Translated (typename Vec::ArgType inTranslation) const
 Translate ray using inTranslation. More...
 
Vec GetPointOnRay (float inFraction) const
 Get point with fraction inFraction on ray (0 = start of ray, 1 = end of ray) More...
 

Public Attributes

Vec mOrigin
 Origin of the ray. More...
 
Vec3 mDirection
 Direction and length of the ray (anything beyond this length will not be reported as a hit) More...
 

Detailed Description

template<class Vec, class Mat, class RayCastType>
struct RayCastT< Vec, Mat, RayCastType >

Structure that holds a single ray cast.

Constructor & Destructor Documentation

◆ RayCastT() [1/3]

template<class Vec , class Mat , class RayCastType >
JPH_OVERRIDE_NEW_DELETE RayCastT< Vec, Mat, RayCastType >::RayCastT ( )
default

Constructors.

◆ RayCastT() [2/3]

template<class Vec , class Mat , class RayCastType >
RayCastT< Vec, Mat, RayCastType >::RayCastT ( typename Vec::ArgType  inOrigin,
Vec3Arg  inDirection 
)
inline

◆ RayCastT() [3/3]

template<class Vec , class Mat , class RayCastType >
RayCastT< Vec, Mat, RayCastType >::RayCastT ( const RayCastT< Vec, Mat, RayCastType > &  )
default

Member Function Documentation

◆ GetPointOnRay()

template<class Vec , class Mat , class RayCastType >
Vec RayCastT< Vec, Mat, RayCastType >::GetPointOnRay ( float  inFraction) const
inline

Get point with fraction inFraction on ray (0 = start of ray, 1 = end of ray)

◆ Transformed()

template<class Vec , class Mat , class RayCastType >
RayCastType RayCastT< Vec, Mat, RayCastType >::Transformed ( typename Mat::ArgType  inTransform) const
inline

Transform this ray using inTransform.

◆ Translated()

template<class Vec , class Mat , class RayCastType >
RayCastType RayCastT< Vec, Mat, RayCastType >::Translated ( typename Vec::ArgType  inTranslation) const
inline

Translate ray using inTranslation.

Member Data Documentation

◆ mDirection

template<class Vec , class Mat , class RayCastType >
Vec3 RayCastT< Vec, Mat, RayCastType >::mDirection

Direction and length of the ray (anything beyond this length will not be reported as a hit)

◆ mOrigin

template<class Vec , class Mat , class RayCastType >
Vec RayCastT< Vec, Mat, RayCastType >::mOrigin

Origin of the ray.


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