Example

Angle of Reflection

geometric.angleReflect(incidenceAngle, surfaceAngle) returns the angle of reflection given a starting angle, also known as the angle of incidence, and the angle of the surface off of which it is reflected.

Drag the incoming ray or the surface to see how angleReflect computes the reflected ray.

Surface

Incidence

55°

Reflection

305°

IncidenceReflection

Code