Package: graphene

Function graphene:ray-intersect-sphere

Lambda List

graphene:ray-intersect-sphere (ray sphere)

Syntax

(graphene:ray-intersect-sphere ray sphere) => kind, dist

Arguments

ray -- a graphene:ray-t instance
sphere -- a graphene:sphere-t instance
kind -- a graphene:ray-intersection-kind-t value
dist -- a single float for the distance of the point on the ray that intersects the sphere

Details

Intersects the given ray with the given sphere.
 

See also

2025-08-10