Class Bounds
java.lang.Object
com.pixelmonmod.api.client.screen.util.Bounds
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
area()
boolean
contains
(double x, double y) boolean
contains
(net.minecraft.core.Position position) double
diagonal()
static Bounds
empty()
double
maxX()
double
maxY()
double
minX()
double
minY()
static Bounds
of
(double x1, double y1, double x2, double y2) double
push
(double x, double y) push
(net.minecraft.core.Position... positions) rectangle
(double buffer) reset()
set
(double[] xy1, double[] xy2) set
(double x1, double y1, double x2, double y2) static Bounds
unit()
double
x()
double
y()
static Bounds
zero()
-
Constructor Details
-
Bounds
public Bounds()
-
-
Method Details
-
empty
-
zero
-
unit
-
of
-
reset
-
set
-
set
-
set
-
push
-
push
-
add
-
minX
public double minX() -
minY
public double minY() -
maxX
public double maxX() -
maxY
public double maxY() -
x
public double x() -
y
public double y() -
diagonal
public double diagonal() -
perimeter
public double perimeter() -
area
public double area() -
contains
public boolean contains(net.minecraft.core.Position position) -
contains
public boolean contains(double x, double y) -
rectangle
-
rectangle
-