Math.edge: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.9<br/> '''<translate>Class</translate>:''' math<br/> === <transl..."
 
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(2 intermediate revisions by 2 users not shown)
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">
<syntaxhighlight lang="lua">
(table) = math.edge(point,shape)
(table) = math.edge(point,shape)
</source>
</syntaxhighlight>
=== <translate>Parameters</translate> ===
 
'''point''': (table) <translate>The point to test</translate> <br/>
=== Parameters ===
'''shape''': (table) <translate>The shape to test against (see [[Special:MyLanguage/math.raycast|math.raycast]]) </translate> <br/>
'''point''': (table) the point to test<br/>
'''shape''': (table) the shape to test against (see [[math.raycast]])<br/>


=== <translate>Return values</translate> ===
=== Return values ===
'''<translate>Returns</translate>''' (table) <translate>The nearest point on the given shape</translate><br/>
'''Returns''' (table) the nearest point on the given shape<br/>


{{Math}}
{{Math}}

Latest revision as of 13:30, 13 July 2023

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