Vector2Refract method
Compute the direction of a refracted ray v: normalized direction of the incoming ray n: normalized normal vector of the interface of two optical media r: ratio of the refractive index of the medium from where the ray comes to the refractive index of the medium on the other side of the surface
Implementation
Vector2C Vector2Refract(Vector2C v, Vector2C n, double r)
=> _Vector2Refract(v, n, r);