Difference between revisions of "Math.edge"

From GiderosMobile
(removed language stuff)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns the nearest point on the edge of a given shape.
 
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>
 
</source>

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: math

Description

Returns the nearest point on the edge of a given shape. <syntaxhighlight lang="lua"> (table) = math.edge(point,shape) </source>

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