Name Edit

Reflect - returns the reflectiton vector given an incidence vector and a normal vector.

Synopsis Edit

vector1 reflect(vector1 i, vector1 n);
vector2 reflect(vector2 i, vector2 n);
vector3 reflect(vector3 i, vector3 n);
vector4 reflect(vector4 i, vector4 n);

Parameters Edit

Incidence vector.
Normal vector.

Description Edit

Returns the reflectiton vector given an incidence vector i and a normal vector n. The resulting vector is the identical number of components as the two input vectors.

The normal vector n should be normalized. If n is normalized, the output vector will have the same length as the input incidence vector i.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.