Function legion::core::math::pointToPlane

Function Documentation

inline float legion::core::math::pointToPlane(const vec3 &point, const vec3 &planePosition, const vec3 &planeNormal)

Calculates the closest distance between point p and a plane.

Parameters
  • point: - The point

  • planePosition: - A point on the plane

  • planeNormal: - The plane normal