MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
HitTest.hpp File Reference
+ Include dependency graph for HitTest.hpp:

Go to the source code of this file.

Classes

struct  MayaFlux::Kinesis::HitResult
 Entity id and perpendicular distance from the ray axis. More...
 
struct  MayaFlux::Kinesis::Ray
 Origin and normalized direction in world space. More...
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kinesis
 

Functions

float MayaFlux::Kinesis::point_ray_distance_sq (const Ray &ray, const glm::vec3 &point, float *out_t=nullptr)
 Squared perpendicular distance from a point to an infinite ray.
 
std::optional< HitResultMayaFlux::Kinesis::ray_cast (const SpatialIndex3D &index, const Ray &ray, float tolerance)
 Find the closest entity to a ray within a tolerance radius.
 
std::vector< HitResultMayaFlux::Kinesis::ray_cast_all (const SpatialIndex3D &index, const Ray &ray, float tolerance)
 Find all entities within tolerance of a ray, sorted by distance.
 
Ray MayaFlux::Kinesis::screen_to_ray (double window_x, double window_y, uint32_t width, uint32_t height, const ViewTransform &vt)
 Construct a world-space ray from window pixel coordinates.