projectPoint method

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

Implementation

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