Difference between revisions of "Math.inside"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.9<br/> '''<translate>Class</translate>:''' math<br/> === <transl...")
(No difference)

Revision as of 11:32, 26 August 2020


Available since: Gideros 2020.9
Class: math

Description

Check if a point is inside or outside a shape.

(number) = math.inside(point,shape)

Parameters

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

Return values

Returns (number) A positive value if the point is outside, negative if inside, or 0 if on the edge