get_distance_to_plane


Description:

public float get_distance_to_plane (Plane p)

Computes the distance of the origin of the given Ray from the given plane.

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

Parameters:

this

a Ray

p

a Plane

Returns:

the distance of the origin of the ray from the plane