// Calculate the reflectionvector around a given normal, and return that public static Vector Reflect(Vector vI, Vector vN) { //R = 2 * (N.I) * N – I Vector R = 2 * vI.Dot(vN) * vN - vI; return R; }
public static Vector Reflect(Vector vI, Vector vN) { var reflectedVector = 2 * vI.Dot(vN) * vN - vI; return reflectedVector; }