applyMatrix4 method

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

Implementation

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

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

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

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

  return this;
}