Difference between revisions of "B2.EdgeShape:set"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.EdgeShape|b2.EdgeShape]]<br/>
+
'''Class:''' [[Special:MyLanguage/b2.EdgeShape|b2.EdgeShape]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Sets the two vertices of this instance.<br />
+
Sets the two vertices of this instance.
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
b2.EdgeShape:set(v1x,v1y,v2x,v2y)
+
b2.EdgeShape:set(v1x,v1y,v2x,v2y)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''v1x''': (number) <translate>- the x coordinate of 1st point of edge</translate> <br/>
+
=== Parameters ===
'''v1y''': (number) <translate>- the y coordinate of 1st point of edge</translate> <br/>
+
'''v1x''': (number) the x coordinate of 1st point of edge <br/>
'''v2x''': (number) <translate>- the x coordinate of 2nd point of edge</translate> <br/>
+
'''v1y''': (number) the y coordinate of 1st point of edge <br/>
'''v2y''': (number) <translate>- the y coordinate of 2nd point of edge</translate> <br/>
+
'''v2x''': (number) the x coordinate of 2nd point of edge <br/>
 +
'''v2y''': (number) the y coordinate of 2nd point of edge <br/>
 +
 
 +
{{B2.EdgeShape}}

Revision as of 08:38, 17 February 2020


Available since: Gideros 2011.6
Class: b2.EdgeShape

Description

Sets the two vertices of this instance.

b2.EdgeShape:set(v1x,v1y,v2x,v2y)

Parameters

v1x: (number) the x coordinate of 1st point of edge
v1y: (number) the y coordinate of 1st point of edge
v2x: (number) the x coordinate of 2nd point of edge
v2y: (number) the y coordinate of 2nd point of edge




LiquidFun