normalize method

Plane normalize()

Implementation

Plane normalize() {
  // Note: will lead to a divide by zero if the plane is invalid.

  var inverseNormalLength = 1.0 / normal.length();
  normal.multiplyScalar(inverseNormalLength);
  constant *= inverseNormalLength;

  return this;
}