Ray.getDistanceToPlane

Computes the distance of the origin of the given #graphene_ray_t from the given plane.

If the ray does not intersect the plane, this function returns INFINITY.

class Ray
float
getDistanceToPlane

Parameters

p Plane

a #graphene_plane_t

Return Value

Type: float

the distance of the origin of the ray from the plane

Meta