projectOnPlane method

Vector3 projectOnPlane(
  1. Vector3 planeNormal
)

Projects this vector onto a plane by subtracting this vector projected onto the plane's normal from this vector.

  • planeNormal - A vector representing a plane normal.

Implementation

Vector3 projectOnPlane(Vector3 planeNormal) {
  _vector.copy(this).projectOnVector(planeNormal);

  return sub(_vector);
}