openrndr / org.openrndr.math.transforms / ortho

ortho

fun ortho(xMag: Double, yMag: Double, zNear: Double, zFar: Double): Matrix44 (source)

Creates an orthographic projection matrix

xMag The horizontal magnification of the view yMag The vertical magnification of the view zNear The distance to the near clipping plane zFar The distance to the far clipping plane

fun ortho(left: Double, right: Double, bottom: Double, top: Double, zNear: Double, zFar: Double): Matrix44 (source)

Creates an orthographic projection matrix with the given bounds

left left plane of the clipping volume right right plane of the clipping volume bottom bottom plane of the clipping volume top top plane of the clipping volume zNear The distance to the near clipping plane zFar The distance to the far clipping plane