public class DistancePredicate extends Object
Modifier and Type | Field and Description |
---|---|
private NumberRange.FloatRange |
absolute |
static DistancePredicate |
ANY |
private NumberRange.FloatRange |
horizontal |
private NumberRange.FloatRange |
x |
private NumberRange.FloatRange |
y |
private NumberRange.FloatRange |
z |
Constructor and Description |
---|
DistancePredicate(NumberRange.FloatRange x,
NumberRange.FloatRange y,
NumberRange.FloatRange z,
NumberRange.FloatRange horizontal,
NumberRange.FloatRange absolute) |
Modifier and Type | Method and Description |
---|---|
static DistancePredicate |
fromJson(JsonElement json) |
static DistancePredicate |
horizontal(NumberRange.FloatRange horizontal) |
boolean |
test(double x0,
double y0,
double z0,
double x1,
double y1,
double z1) |
JsonElement |
toJson() |
static DistancePredicate |
y(NumberRange.FloatRange y) |
public static final DistancePredicate ANY
private final NumberRange.FloatRange x
private final NumberRange.FloatRange y
private final NumberRange.FloatRange z
private final NumberRange.FloatRange horizontal
private final NumberRange.FloatRange absolute
public DistancePredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, NumberRange.FloatRange horizontal, NumberRange.FloatRange absolute)
public static DistancePredicate horizontal(NumberRange.FloatRange horizontal)
public static DistancePredicate y(NumberRange.FloatRange y)
public boolean test(double x0, double y0, double z0, double x1, double y1, double z1)
public static DistancePredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()