Kanzi  3.9.5
Kanzi Engine API
ray.hpp File Reference

Classes

class  kanzi::Ray
 Ray can be mathematically defined as a point (the origin of the ray in space) and a direction. More...
 
struct  kanzi::RayBoxIntersection
 Stores the result of an intersection between a box and a ray. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

RayBoxIntersection kanzi::rayIntersectBox (const Ray &ray, const Box &box, const Matrix4x4 &boxOrientation)
 Tests whether a ray intersects with a bounding box and returns the distance. More...
 
RayBoxIntersection kanzi::rayIntersectBox (const Ray &ray, const Vector3 minCorner, const Vector3 maxCorner, const Matrix4x4 &boxOrientation)
 Tests whether a ray intersects with a bounding box and returns the distance. More...
 
RayBoxIntersection kanzi::rayIntersectBoxBackface (const Ray &ray, const Box &box, const Matrix4x4 &boxOrientation)
 Tests whether a ray intersects with the back faces of a bounding box and returns the distance. More...
 
RayBoxIntersection kanzi::rayIntersectBoxBackface (const Ray &ray, const Vector3 minCorner, const Vector3 maxCorner, const Matrix4x4 &boxOrientation)
 Tests whether a ray intersects with the back faces of a bounding box and returns the distance. More...
 
optional< float > kanzi::rayIntersectCylinder (const Ray &ray, const float cylinderRadius, const float cylinderHeight, const Vector3 cylinderAxis, const Matrix4x4 &cylinderTransform)
 Tests whether a ray intersects with a cylinder aligned on the given unit-axis (within range [-height/2, height/2]). More...
 
optional< float > kanzi::rayIntersectSphere (const Ray &ray, const Vector3 spherePosition, const float sphereRadius)
 Tests whether a ray intersects with a sphere and returns the distance. More...