Package: graphene

Function graphene:ray-intersect-sphere

Lambda List

graphene:ray-intersect-sphere (ray sphere)

Arguments

ray -- a graphene:ray-t instance
sphere -- a graphene:sphere-t instance

Return Value

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

Details

Intersects the given ray with the given sphere.
 

See also

2023-12-6