A right-angle prism serves as a mirror to deflect light at a 90-degree angle and also functions as a reflector to redirect light by total internal reflection over an angle of 180 degrees.