Ray.getDistanceToPoint

Computes the distance of the closest approach between the given #graphene_ray_t r and the point p.

The closest approach to a ray from a point is the distance between the point and the projection of the point on the ray itself.

class Ray
float
getDistanceToPoint

Parameters

p graphene.point3_d.Point3D

a #graphene_point3d_t

Return Value

Type: float

the distance of the point