closestPointToPoint method

Vector3 closestPointToPoint(
  1. Vector3 point,
  2. bool clampToLine,
  3. Vector3 target
)

Implementation

Vector3 closestPointToPoint(Vector3 point, bool clampToLine, Vector3 target) {
  final t = closestPointToPointParameter(point, clampToLine);

  return delta(target).multiplyScalar(t).add(start);
}