Difference between revisions of "Matrix:orthographicProjection"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 
=== Description ===
 
=== Description ===
Replace this matrix by an orthographic projection suitable for the current 3D engine
+
<translate>Replace this matrix by an orthographic projection suitable for the current 3D engine</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Matrix:orthographicProjection(left,right,bottom,top,near,far)
 
  Matrix:orthographicProjection(left,right,bottom,top,near,far)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''left''': (number) left plane distance <br/>
+
'''left''': (number) <translate>left plane distance</translate> <br/>
'''right''': (number) right plane distance <br/>
+
'''right''': (number) <translate>right plane distance</translate> <br/>
'''bottom''': (number) bottom plane distance <br/>
+
'''bottom''': (number) <translate>bottom plane distance</translate> <br/>
'''top''': (number) top plane distance <br/>
+
'''top''': (number) <translate>top plane distance</translate> <br/>
'''near''': (number) near plane distance <br/>
+
'''near''': (number) <translate>near plane distance</translate> <br/>
'''far''': (number) far plane distance <br/>
+
'''far''': (number) <translate>far plane distance</translate> <br/>

Revision as of 14:34, 23 August 2018

Available since: Gideros 2016.06

Description

Replace this matrix by an orthographic projection suitable for the current 3D engine

 Matrix:orthographicProjection(left,right,bottom,top,near,far)

Parameters

left: (number) left plane distance
right: (number) right plane distance
bottom: (number) bottom plane distance
top: (number) top plane distance
near: (number) near plane distance
far: (number) far plane distance