1
0

Added more clamping operations to cCuboid.

This commit is contained in:
Mattes D
2019-08-09 14:53:57 +02:00
parent e7016b1525
commit d0b095ad51
3 changed files with 75 additions and 6 deletions

View File

@@ -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 =