1
0

Removed coord-based API from cCuboid. (#4362)

This commit is contained in:
Mattes D
2019-08-09 03:13:15 +02:00
committed by GitHub
parent a2547bf1fe
commit e7016b1525
5 changed files with 185 additions and 142 deletions

View File

@@ -570,28 +570,12 @@ return
Params =
{
{
Name = "X1",
Type = "number",
Name = "Point1",
Type = "Vector3i",
},
{
Name = "Y1",
Type = "number",
},
{
Name = "Z1",
Type = "number",
},
{
Name = "X2",
Type = "number",
},
{
Name = "Y2",
Type = "number",
},
{
Name = "Z2",
Type = "number",
Name = "Point2",
Type = "Vector3i",
},
},
Notes = "Assigns all the coords to the specified values. Sort-state is ignored.",
@@ -713,42 +697,6 @@ return
},
Notes = "Creates a new Cuboid object with the specified point as both its corners (the cuboid has a size of 1 in each direction).",
},
{
Params =
{
{
Name = "X1",
Type = "number",
},
{
Name = "Y1",
Type = "number",
},
{
Name = "Z1",
Type = "number",
},
{
Name = "X2",
Type = "number",
},
{
Name = "Y2",
Type = "number",
},
{
Name = "Z2",
Type = "number",
},
},
Returns =
{
{
Type = "cCuboid",
},
},
Notes = "Creates a new Cuboid object with the specified points as its corners.",
},
},
DifX =
{
@@ -868,30 +816,6 @@ return
},
IsInside =
{
{
Params =
{
{
Name = "X",
Type = "number",
},
{
Name = "Y",
Type = "number",
},
{
Name = "Z",
Type = "number",
},
},
Returns =
{
{
Type = "boolean",
},
},
Notes = "Returns true if the specified point (integral coords) is inside this cuboid. Assumes sorted.",
},
{
Params =
{
@@ -940,16 +864,8 @@ return
Params =
{
{
Name = "OffsetX",
Type = "number",
},
{
Name = "OffsetY",
Type = "number",
},
{
Name = "OffsetZ",
Type = "number",
Name = "Offset",
Type = "Vector3i",
},
},
Notes = "Adds the specified offsets to each respective coord, effectively moving the Cuboid. Sort-state is ignored and preserved.",