Documentation

Contains Vector - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Rectangle :: Contains Vector

Root.Rect.ContainsVector(
  Point 2D Vector,
  Include Bottom Right Edges Boolean
) Boolean
Returns true if this rectangle contains a point

Parameters

Point 2D Vector
Point to check
Include Bottom Right Edges Boolean
Include the bottom and right edges of the rectangle

Return Value

Boolean

Lua Usage

local boolean = rectangle:ContainsVector(point, includeBottomRightEdges)

If you think anything is missing, please feel free to: submit documentation feedback on this page