@Environment(value=CLIENT) public class Frustum extends Object
Modifier and Type | Field and Description |
---|---|
private Vector4f[] |
homogeneousCoordinates |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
Frustum(Matrix4f matrix4f,
Matrix4f matrix4f2) |
Modifier and Type | Method and Description |
---|---|
private void |
init(Matrix4f matrix4f,
Matrix4f matrix4f2) |
private boolean |
isAnyCornerVisible(float x1,
float y1,
float z1,
float x2,
float y2,
float z2) |
boolean |
isVisible(Box box) |
private boolean |
isVisible(double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ) |
void |
setPosition(double cameraX,
double cameraY,
double cameraZ) |
private void |
transform(Matrix4f function,
int x,
int y,
int z,
int index) |
private final Vector4f[] homogeneousCoordinates
private double x
private double y
private double z
public void setPosition(double cameraX, double cameraY, double cameraZ)
private void transform(Matrix4f function, int x, int y, int z, int index)
public boolean isVisible(Box box)
private boolean isVisible(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
private boolean isAnyCornerVisible(float x1, float y1, float z1, float x2, float y2, float z2)