Difference between revisions of "Viewport:lookAt"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' in development<br/> | '''<translate>Available since</translate>:''' in development<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/Viewport|Viewport]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments.</translate> | <translate>Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments.</translate> |
Revision as of 09:29, 24 August 2018
Available since: in development
Class: Viewport
Description
Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments.
Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz)
Parameters
eyex: (number) eye X coordinate
eyey: (number) eye Y coordinate
eyez: (number) eye Z coordinate
targetx: (number) target X coordinate
targety: (number) target Y coordinate
targetz: (number) target Z coordinate
upx: (number) up X coordinate
upy: (number) up Y coordinate
upz: (number) up Z coordinate