Skip to main content

reflection_matrix

Function reflection_matrix 

Source
pub fn reflection_matrix(plane_point: Vec3, plane_normal: Vec3) -> Mat4
Expand description

Computes a reflection matrix for a plane.

The plane is defined by a point on the plane and its normal. The resulting matrix reflects points across this plane.