Skip to content

vec3Reflect

vec3Reflect(v, normal): Vec3

Defined in: src/modules/math/vec3.ts:148

Reflect v off a surface whose normal is the unit vector normal, via v - 2(v·n)n. A non-unit normal does not just rescale the result, it skews it, so normalise first.

Vec3

Vec3

Vec3