Matrix.initPerspective

graphene.matrix.Matrix initPerspective(float fovy, float aspect, float zNear, float zFar)

Initializes a #graphene_matrix_t with a perspective projection.

Parameters

fovythe field of view angle, in degrees
aspectthe aspect value
zNearthe near Z plane
zFarthe far Z plane

Returns

the initialized matrix