Package codechicken.lib.vec
Class Rectangle4i
java.lang.Object
codechicken.lib.vec.Rectangle4i
- All Implemented Interfaces:
Copyable<Rectangle4i>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public int x -
y
public int y -
w
public int w -
h
public int h
-
-
Constructor Details
-
Rectangle4i
public Rectangle4i() -
Rectangle4i
public Rectangle4i(int x, int y, int w, int h) -
Rectangle4i
-
-
Method Details
-
x1
public int x1() -
y1
public int y1() -
x2
public int x2() -
y2
public int y2() -
set
public void set(int x, int y, int w, int h) -
offset
-
include
-
include
-
expand
-
contains
public boolean contains(int px, int py) -
intersects
-
area
public int area() -
copy
- Specified by:
copyin interfaceCopyable<Rectangle4i>
-