Vector.refract

Calculates direction of refracted ray where this is incoming ray, n is normal vector and r is refractive ratio

struct Vector(T, size_t N)
refract
(,
double r
)
if (
isNumeric!T &&
N > 0
)

Meta