reflect

final static Vector2D reflect(Vector2D $self, Vector2D surfaceNormal)

Reflect the incoming vector about a normal to a line in 2D, or about a normal to a plane in 3D This method acts on the vector directly

Parameters

surfaceNormal

the Vector2D to reflect about, will be normalized by this method