added getMinPointExtension and getMaxPointExtension
Dieser Commit ist enthalten in:
Ursprung
fb7fe3fb2e
Commit
373f74122f
@ -166,11 +166,19 @@ public class Region {
|
|||||||
return prototype.getMaxPoint(this);
|
return prototype.getMaxPoint(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Point getMinBuildAreaPoint() {
|
public Point getMinPointExtension() {
|
||||||
|
return prototype.getMinPointExtension(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Point getMaxPointExtension() {
|
||||||
|
return prototype.getMaxPointExtension(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Point getMinPointBuildArea() {
|
||||||
return prototype.buildArea.getMinPoint(this);
|
return prototype.buildArea.getMinPoint(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Point getMaxBuildAreaPoint() {
|
public Point getMaxPointBuildArea() {
|
||||||
return prototype.buildArea.getMaxPoint(this);
|
return prototype.buildArea.getMaxPoint(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,6 +399,23 @@ public class Region {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Point getMinPointExtension(Region region) {
|
||||||
|
return new Point(
|
||||||
|
region.minPoint.getX() + offsetX - extensionAxisX,
|
||||||
|
region.minPoint.getY() + offsetY,
|
||||||
|
region.minPoint.getZ() + offsetZ - extensionNegativeZ
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Point getMaxPointExtension(Region region) {
|
||||||
|
return new Point(
|
||||||
|
region.minPoint.getX() + offsetX - extensionAxisX + (sizeX + extensionAxisX * 2),
|
||||||
|
region.minPoint.getY() + offsetY + sizeY + extensionPositiveY,
|
||||||
|
region.minPoint.getZ() + offsetZ - extensionNegativeZ + (sizeZ + extensionNegativeZ + extensionPositiveZ)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean inRegion(Region region, Location l) {
|
public boolean inRegion(Region region, Location l) {
|
||||||
return inRange(l.getX(), region.minPoint.getX() + offsetX, sizeX) &&
|
return inRange(l.getX(), region.minPoint.getX() + offsetX, sizeX) &&
|
||||||
inRange(l.getY(), region.minPoint.getY() + offsetY, sizeY) &&
|
inRange(l.getY(), region.minPoint.getY() + offsetY, sizeY) &&
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren