closestEdgeParam

closestEdgeParam: number

The parameter f along the closest edge to p of its projection q.

  • We have q = v_i + f * (v_j - v_i) where i = closestEdgeIndex and j = (i + 1) % 3 are the indices of the start vertex v_i and end vertex v_j of the closest edge to p.
  • Note that 0 <= f <= 1.

Defined in

Last Updated: 14 November, 2024