Function legion::core::math::pointToLineSegment

Function Documentation

inline float legion::core::math::pointToLineSegment(const vec3 &point, const vec3 &lineOrigin, const vec3 &lineEnd)

Calculates the shortest distance between a point and a line.

Parameters
  • point: - The point

  • lineOrigin: - The origin of the line

  • lineEnd: - The end of the line