Beispiel #1
0
 private static Vector Reflect(Vector velocity, Vector normal)
 {
     return velocity - (2.0 * normal * velocity.Dot(normal));
 }