projectPoint method

Vector3 projectPoint(
  1. Vector3 point,
  2. Vector3 target
)

Implementation

Vector3 projectPoint(Vector3 point, Vector3 target) {
  return target
      .copy(normal)
      .multiplyScalar(-distanceToPoint(point))
      .add(point);
}