normalize method

Plane normalize()

Implementation

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

  final inverseNormalLength = 1.0 / normal.length;
  normal.scale(inverseNormalLength);
  constant *= inverseNormalLength;

  return this;
}