Matrix.initOrtho

Initializes a #graphene_matrix_t with an orthographic projection.

class Matrix
initOrtho
(
float left
,
float right
,
float top
,
float bottom
,
float zNear
,
float zFar
)

Parameters

left float

the left edge of the clipping plane

right float

the right edge of the clipping plane

top float

the top edge of the clipping plane

bottom float

the bottom edge of the clipping plane

zNear float

the distance of the near clipping plane

zFar float

the distance of the far clipping plane

Return Value

Type: Matrix

the initialized matrix

Meta