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.
 
 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.
 
RayCastType Translated (typename Vec::ArgType inTranslation) const
 Translate ray using inTranslation.
 
Vec GetPointOnRay (float inFraction) const
 Get point with fraction inFraction on ray (0 = start of ray, 1 = end of ray)
 

Public Attributes

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

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: