CF_Ray¶
Category: math
GitHub: cute_math.h
A ray.
Struct Members | Description |
---|---|
CF_V2 p |
Position. |
CF_V2 d |
Direction (normalized). |
float t |
Distance along d from position p to find endpoint of ray. |
Remarks¶
A ray is a directional line segment. It starts at an endpoint and extends into another direction for a specified distance (defined by t
).
Related Pages¶
cf_ray_to_poly
cf_impact
cf_endpoint
cf_ray_to_halfspace
cf_ray_to_circle
cf_ray_to_aabb
cf_ray_to_capsule