reflect method

void reflect(
  1. Vector2 normal
)

Reflect this.

Implementation

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