pub fn perspective_matrix<V: Vector<Scalar = f32>, MatrixLike: Matrix<V> + Default>(
fov: V::Scalar,
aspect_ratio: V::Scalar,
near_clipping_plane: V::Scalar,
far_clipping_plane: V::Scalar,
) -> MatrixLike
Expand description
Creates a 4x4 perspective matrix given the fov in turns (unit between 0..2pi radians), aspect ratio, near clipping plane (also known as z_near), and far clipping plane (also known as z_far). Enforces that the matrix being created is square in both debug and release builds, but only enforces that the output matrix is 4x4 in debug builds.