Available since Version 1.0.
Checks if a point is inside an area defined by a set of points.
Syntax
Engine.VectorUtil.InArea( point, areaCenter, areaSize )Arguments
- point (Vector3): The point to check.
- areaCenter (Vector3): The center of the area.
- areaSize (Vector3): The size of the area (width, length, height).
Return Values
- (boolean): True if the point is inside the area, false otherwise.
Examples
local point = Engine.Vector3(1, 2, 3)
local areaCenter = Engine.Vector3(4, 5, 6)
local areaSize = Engine.Vector3(7, 8, 9)
local inArea = Engine.VectorUtil.InArea(point, areaCenter, areaSize)