Kanzi 3.9.10
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

namespace  kanzi
 

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.
 
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.
 
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.
 
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.
 
optional< floatkanzi::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]).
 
optional< floatkanzi::rayIntersectSphere (const Ray &ray, const Vector3 spherePosition, const float sphereRadius)
 Tests whether a ray intersects with a sphere and returns the distance.