Difference between revisions of "B2.Body:getWorldPoint"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.09.6<br/>
 
'''Available since:''' Gideros 2012.09.6<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Returns the world coordinates of a point given the local coordinates.<br />
 
Returns the world coordinates of a point given the local coordinates.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = b2.Body:getWorldPoint(x,y)
 
(number), (number) = b2.Body:getWorldPoint(x,y)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''x''': (number) x coordinate of the local point <br/>
+
'''x''': (number) <translate>x coordinate of the local point</translate> <br/>
'''y''': (number) y coordinate of the local point <br/>
+
'''y''': (number) <translate>y coordinate of the local point</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) x coordinate of the provided point expressed in world coordinates<br/>
+
'''Returns''' (number) <translate>x coordinate of the provided point expressed in world coordinates</translate><br/>
'''Returns''' (number) y coordinate of the provided point expressed in world coordinates<br/>
+
'''Returns''' (number) <translate>y coordinate of the provided point expressed in world coordinates</translate><br/>

Revision as of 14:32, 23 August 2018

Available since: Gideros 2012.09.6

Description


Returns the world coordinates of a point given the local coordinates.

(number), (number) = b2.Body:getWorldPoint(x,y)

Parameters

x: (number) x coordinate of the local point
y: (number) y coordinate of the local point

Return values

Returns (number) x coordinate of the provided point expressed in world coordinates
Returns (number) y coordinate of the provided point expressed in world coordinates