| Modifier and Type | Field and Description |
|---|---|
protected double |
height |
protected Vector2 |
relativeMax |
protected Vector2 |
relativeMin |
protected double |
width |
protected Vector3 |
worldMax |
protected Vector3 |
worldMin |
| Constructor and Description |
|---|
Plane(Vector3 direction,
Vector2 corner,
Vector2 oppositeCorner)
See ShapeHelper for alternative construction methods
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateActuals() |
protected void |
calculateSize() |
boolean |
checkToleranceBounds(Vector3 center,
Box bounds) |
Plane |
copy() |
boolean |
equals(java.lang.Object other) |
static Plane |
getBounded(Vector3 direction,
double width,
double height,
double heightRatio) |
static Plane |
getBoundedAxis(Facing.Axis axis,
double width,
double height,
double heightRatio) |
double |
getBoundedX(double x,
double y,
double z) |
double |
getBoundedY(double x,
double y,
double z) |
double |
getDepth() |
static Plane[] |
getOutlinePlanes(Plane outer,
Plane inner) |
Plane |
getScaled(double scale) |
Plane |
getScaled(double scaleX,
double scaleY) |
Plane |
getScaled(double scaleX,
double scaleY,
double scaleZ) |
Plane |
getScaled(Vector2 scale) |
Plane |
getScaled(Vector3 scale) |
VectorSuppliers.VectorSupplier2D |
getVectorSupplier(Box bounds) |
boolean |
isInsideRelative(Vector2 pos) |
Vector2 |
random2D() |
Vector3 |
random3D() |
void |
setRelativeMax(double x,
double y) |
void |
setRelativeMax(Vector2 max) |
void |
setRelativeMin(double x,
double y) |
void |
setRelativeMin(Vector2 min) |
void |
setScaleHeight(double scale) |
void |
setScales(double scaledWidth,
double scaledHeight) |
void |
setScaleWidth(double scale) |
getAs2DArray, getBoundedZ, getDirectionAngles, getOutlineSupplier, getRelativeCoordinate, getRelativeCoordinate, getWorldCoordinate, getWorldCoordinate, isInside, isInside, makeFuzzBall, sameDirectionclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounded, getBounded, getBoundedX, getBoundedXY, getBoundedXY, getBoundedXZ, getBoundedXZ, getBoundedY, getBoundedYZ, getBoundedYZ, getBoundedZ, getCenter, getHeight, getWidth, makeFuzzBall, makeFuzzBall, makeFuzzBallprotected Vector3 worldMin
protected Vector3 worldMax
protected Vector2 relativeMin
protected Vector2 relativeMax
protected double width
protected double height
public static Plane getBounded(Vector3 direction, double width, double height, double heightRatio)
public static Plane getBoundedAxis(Facing.Axis axis, double width, double height, double heightRatio)
protected void calculateActuals()
protected void calculateSize()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic double getDepth()
public double getBoundedX(double x,
double y,
double z)
public double getBoundedY(double x,
double y,
double z)
public Plane getScaled(double scale)
public Plane getScaled(double scaleX, double scaleY)
public Plane getScaled(double scaleX, double scaleY, double scaleZ)
public VectorSuppliers.VectorSupplier2D getVectorSupplier(Box bounds)
getVectorSupplier in class Shape2Dpublic boolean isInsideRelative(Vector2 pos)
isInsideRelative in class Shape2Dpublic Vector2 random2D()
public Vector3 random3D()
public void setRelativeMax(double x,
double y)
public void setRelativeMax(Vector2 max)
public void setRelativeMin(double x,
double y)
public void setRelativeMin(Vector2 min)
public void setScales(double scaledWidth,
double scaledHeight)
public void setScaleHeight(double scale)
public void setScaleWidth(double scale)