Difference between revisions of "Matrix:perspectiveProjection"

From GiderosMobile
(remove language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[Matrix]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Matrix|Matrix]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>replace this matrix by a perspective projection matrix suitable for the current 3D engine</translate>
+
Replaces this matrix by a perspective projection matrix. Suitable for the current 3D engine.
 
<source lang="lua">
 
<source lang="lua">
Matrix:perspectiveProjection(left,right,bottom,top,near,far)
+
Matrix:perspectiveProjection(left,right,bottom,top,near,far)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''left''': (number) <translate>left plane distance</translate> <br/>
+
=== Parameters ===
'''right''': (number) <translate>right plane distance</translate> <br/>
+
'''left''': (number) left plane distance<br/>
'''bottom''': (number) <translate>bottom plane distance</translate> <br/>
+
'''right''': (number) right plane distance<br/>
'''top''': (number) <translate>top plane distance</translate> <br/>
+
'''bottom''': (number) bottom plane distance<br/>
'''near''': (number) <translate>near plane distance</translate> <br/>
+
'''top''': (number) top plane distance<br/>
'''far''': (number) <translate>far plane distance</translate> <br/>
+
'''near''': (number) near plane distance<br/>
 +
'''far''': (number) far plane distance<br/>
 +
 
 +
 
 +
----
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[Matrix]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Matrix|Matrix]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>replace this matrix by a perspective projection matrix suitable for this 3D engine (simplified form)</translate>
+
Replaces this matrix by a perspective projection matrix. Suitable for the current 3D engine (simplified form).
 
<source lang="lua">
 
<source lang="lua">
Matrix:perspectiveProjection(fov,aspect,near,far)
+
Matrix:perspectiveProjection(fov,aspect,near,far)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''fov''': (number) <translate>field of view angle</translate> <br/>
+
=== Parameters ===
'''aspect''': (number) <translate>aspect ratio (width/height)</translate> <br/>
+
'''fov''': (number) field of view angle<br/>
'''near''': (number) <translate>near plane distance</translate> <br/>
+
'''aspect''': (number) aspect ratio (width/height)<br/>
'''far''': (number) <translate>far plane distance</translate> <br/>
+
'''near''': (number) near plane distance<br/>
 +
'''far''': (number) far plane distance<br/>
  
 
{{Matrix}}
 
{{Matrix}}

Revision as of 06:20, 25 December 2020

Available since: Gideros 2016.06
Class: Matrix

Description

Replaces this matrix by a perspective projection matrix. Suitable for the current 3D engine.

Matrix:perspectiveProjection(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



Available since: Gideros 2016.06
Class: Matrix

Description

Replaces this matrix by a perspective projection matrix. Suitable for the current 3D engine (simplified form).

Matrix:perspectiveProjection(fov,aspect,near,far)

Parameters

fov: (number) field of view angle
aspect: (number) aspect ratio (width/height)
near: (number) near plane distance
far: (number) far plane distance