Ray.getDistanceToPlane

float getDistanceToPlane(graphene.plane.Plane p)

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.

Parameters

pa #graphene_plane_t

Returns

the distance of the origin of the ray from the plane