Math.inside

From GiderosMobile
Revision as of 10:32, 26 August 2020 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.9<br/> '''<translate>Class</translate>:''' math<br/> === <transl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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