Matrix.initPerspective

Initializes a #graphene_matrix_t with a perspective projection.

class Matrix
initPerspective
(
float fovy
,
float aspect
,
float zNear
,
float zFar
)

Parameters

fovy float

the field of view angle, in degrees

aspect float

the aspect value

zNear float

the near Z plane

zFar float

the far Z plane

Return Value

Type: Matrix

the initialized matrix

Meta