public class DistancePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MinMaxBounds |
absolute |
static DistancePredicate |
ANY |
private MinMaxBounds |
horizontal |
private MinMaxBounds |
x |
private MinMaxBounds |
y |
private MinMaxBounds |
z |
Constructor and Description |
---|
DistancePredicate(MinMaxBounds x,
MinMaxBounds y,
MinMaxBounds z,
MinMaxBounds horizontal,
MinMaxBounds absolute) |
Modifier and Type | Method and Description |
---|---|
static DistancePredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
test(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
public static final DistancePredicate ANY
private final MinMaxBounds x
private final MinMaxBounds y
private final MinMaxBounds z
private final MinMaxBounds horizontal
private final MinMaxBounds absolute
public DistancePredicate(MinMaxBounds x, MinMaxBounds y, MinMaxBounds z, MinMaxBounds horizontal, MinMaxBounds absolute)
public boolean test(double x1, double y1, double z1, double x2, double y2, double z2)
public static DistancePredicate deserialize(@Nullable com.google.gson.JsonElement element)