Add function to create a projection matrix.