From d0b095ad512959bf15be0f81a972898f5b89099d Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 9 Aug 2019 14:53:57 +0200 Subject: Added more clamping operations to cCuboid. --- Server/Plugins/APIDump/Classes/Geometry.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Server') diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua index e086d23fa..def786685 100644 --- a/Server/Plugins/APIDump/Classes/Geometry.lua +++ b/Server/Plugins/APIDump/Classes/Geometry.lua @@ -581,6 +581,28 @@ return Notes = "Assigns all the coords to the specified values. Sort-state is ignored.", }, }, + Clamp = + { + Params = + { + { + Name = "Limits", + Type = "cCuboid", + }, + }, + Notes = "Clamps this cuboid, so that it doesn't reach outside of Limits in any direction. Assumes both cuboids are sorted.", + }, + ClampSize = + { + Params = + { + { + Name = "MaxSize", + Type = "Vector3i", + }, + }, + Notes = "Clamps this cuboid's p2 so that the cuboid's size doesn't exceed the specified max size. Assumes the cuboid is sorted.", + }, ClampX = { Params = -- cgit v1.2.3