Difference between revisions of "B2.CircleShape.new"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Creates a new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] instance and optionally set its center point and radius.<br />
 
Creates a new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] instance and optionally set its center point and radius.<br />
Line 12: Line 12:
 
(any), (any) = b2.CircleShape.new(centerx,centery,radius)
 
(any), (any) = b2.CircleShape.new(centerx,centery,radius)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''centerx''': (number, optional) <translate>the x coordinate of the center</translate> <br/>
 
'''centerx''': (number, optional) <translate>the x coordinate of the center</translate> <br/>
 
'''centery''': (number, optional) <translate>the y coordinate of the center</translate> <br/>
 
'''centery''': (number, optional) <translate>the y coordinate of the center</translate> <br/>
 
'''radius''': (number, optional) <translate>the radius</translate> <br/>
 
'''radius''': (number, optional) <translate>the radius</translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (any) <translate>A new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] object.</translate><br/>
+
'''<translate>Returns</translate>''' (any) <translate>A new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] object.</translate><br/>
'''Returns''' (any) <translate>A new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] object.</translate><br/>
+
'''<translate>Returns</translate>''' (any) <translate>A new [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]] object.</translate><br/>

Revision as of 08:26, 24 August 2018

Available since: Gideros 2011.6

Description


Creates a new b2.CircleShape instance and optionally set its center point and radius.
If this function is called with more than 3 parameters, b2.CircleShape instance
is created and its center point and radius are set. If this function is called without any
paramaters, only b2.CircleShape instance is created and you should set the center
point and radius with b2.CircleShape:set function.

(any), (any) = b2.CircleShape.new(centerx,centery,radius)

Parameters

centerx: (number, optional) the x coordinate of the center
centery: (number, optional) the y coordinate of the center
radius: (number, optional) the radius

Return values

Returns (any) A new b2.CircleShape object.
Returns (any) A new b2.CircleShape object.