applyMatrix4 method

Plane applyMatrix4(
  1. Matrix4 matrix, [
  2. Matrix3? optionalNormalMatrix
])

Implementation

Plane applyMatrix4(Matrix4 matrix, [Matrix3? optionalNormalMatrix]) {
  var normalMatrix = optionalNormalMatrix ?? _normalMatrix.getNormalMatrix(matrix);

  var referencePoint = coplanarPoint(_vector1).applyMatrix4(matrix);

  var normal = this.normal.applyMatrix3(normalMatrix).normalize();

  constant = -referencePoint.dot(normal).toDouble();

  return this;
}