Difference between revisions of "Math.edge"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.9<br/> '''<translate>Class</translate>:''' math<br/> === <transl...")
 
(removed language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.9<br/>
'''<translate>Available since</translate>:''' Gideros 2020.9<br/>
+
'''Class:''' [[math]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/math|math]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns the nearest point on the edge of a given shape.</translate>
+
Returns the nearest point on the edge of a given shape.
 
<source lang="lua">
 
<source lang="lua">
 
(table) = math.edge(point,shape)
 
(table) = math.edge(point,shape)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
 
'''point''': (table) <translate>The point to test</translate> <br/>
 
'''shape''': (table) <translate>The shape to test against (see [[Special:MyLanguage/math.raycast|math.raycast]]) </translate> <br/>
 
  
=== <translate>Return values</translate> ===
+
=== Parameters ===
'''<translate>Returns</translate>''' (table) <translate>The nearest point on the given shape</translate><br/>
+
'''point''': (table) the point to test<br/>
 +
'''shape''': (table) the shape to test against (see [[math.raycast]])<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (table) the nearest point on the given shape<br/>
  
 
{{Math}}
 
{{Math}}

Revision as of 00:51, 7 September 2021

Available since: Gideros 2020.9
Class: math

Description

Returns the nearest point on the edge of a given shape.

(table) = math.edge(point,shape)

Parameters

point: (table) the point to test
shape: (table) the shape to test against (see math.raycast)

Return values

Returns (table) the nearest point on the given shape