linearly v0.32.0Docs


linearly v0.32.0 / mat4 / perspective

Function: perspective()

perspective(fovy, aspect, near, far): mat4

Alias for perspectiveNO

Parameters

fovy: number

Vertical field of view in degrees

aspect: number

Aspect ratio. typically viewport width/height

near: number

Near bound of the frustum

far: number

Far bound of the frustum, can be null or Infinity

Returns

mat4

Function

Defined in

src/mat4.ts:1125open in new window