reflect method Null safety

void reflect(
  1. Vector3 normal
)

Reflect this.

Implementation

void reflect(Vector3 normal) {
  sub(normal.scaled(2.0 * normal.dot(this)));
}