Available since Version 1.0.
Checks if a point is inside a box.
Syntax
Engine.VectorUtil.InBox( point, boxMin, boxMax )Arguments
- point (Vector3): The point to check.
- boxMin (Vector3): The minimum corner of the box.
- boxMax (Vector3): The maximum corner of the box.
Return Values
- (boolean): True if the point is inside the box, false otherwise.
Examples
local point = Engine.Vector3(1, 2, 3)
local boxMin = Engine.Vector3(4, 5, 6)
local boxMax = Engine.Vector3(7, 8, 9)
local inBox = Engine.VectorUtil.InBox(point, boxMin, boxMax)