Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- forEachVector(Iterable, double, double, double, double, Consumer)
- forEachVector(Iterable, double, double, double, double, double, double, Consumer)
- forEachVector(Iterable, double, double, double, double, double, double, double, double, double, Consumer)
- forEachVector(Iterable, Function, double, double, double, double, Consumer)
- forEachVector(Iterable, Function, double, double, double, double, double, double, Consumer)
- forEachVector(Iterable, Function, double, double, double, double, double, double, double, double, double, Consumer)
- forEachVector(Iterable, Function, double, double, double, double, BiConsumer, V)
- forEachVector(Iterable, Function, double, double, double, double, double, double, BiConsumer, V)
- forEachVector(Iterable, Function, double, double, double, double, double, double, double, double, double, BiConsumer, V)
- forEachVector(Iterable, Function, double, double, double, double, TriConsumer, V1, V2)
- forEachVector(Iterable, Function, double, double, double, double, double, double, TriConsumer, V1, V2)
- forEachVector(Iterable, Function, double, double, double, double, double, double, double, double, double, TriConsumer, V1, V2)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, IntObjectConsumer)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, IntObjectConsumer)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, double, double, double, IntObjectConsumer)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, IntBiObjectConsumer, V)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, IntBiObjectConsumer, V)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, double, double, double, IntBiObjectConsumer, V)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, IntTriObjectConsumer, V1, V2)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, IntTriObjectConsumer, V1, V2)
- forEachVector(Int2ObjectMap, Function, double, double, double, double, double, double, double, double, double, IntTriObjectConsumer, V1, V2)
- isInside(double, double, double, double, Vector3d)
- isInside(double, double, double, double, double, double, Vector3d)
- isInside(double, double, double, double, double, double, double, double, double, Vector3d)
Class VectorBoxUtil
java.lang.Object
com.hypixel.hytale.math.vector.VectorBoxUtil
Utility class for performing box-related vector operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,V> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.static <T> voidforEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.static <T,V1, V2> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.static <T,V> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.static <T> voidforEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.static <T,V1, V2> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.static <T,V> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.static <T> voidforEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.static <T,V1, V2> void forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.static voidforEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.static voidforEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.static voidforEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothem, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.static <T,V1, V2> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.static <T,V> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.static <T> voidforEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.static <T,V1, V2> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.static <T,V> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.static <T> voidforEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.static <T,V1, V2> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.static <T,V> void forEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.static <T> voidforEachVector(Iterable<T> input, Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.static booleanisInside(double originX, double originY, double originZ, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax, org.joml.Vector3d vector) Called to check if a vector is within a box.static booleanisInside(double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, org.joml.Vector3d vector) Called to check if a vector is within a box.static booleanisInside(double originX, double originY, double originZ, double apothem, org.joml.Vector3d vector) Called to check if a vector is within a box.
-
Constructor Details
-
VectorBoxUtil
public VectorBoxUtil()
-
-
Method Details
-
forEachVector
public static void forEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothem, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.- Parameters:
vectors- The vectors to iterate over.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The consumer.
-
forEachVector
public static void forEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.- Parameters:
vectors- The vectors to iterate over.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The consumer.
-
forEachVector
public static void forEachVector(Iterable<org.joml.Vector3d> vectors, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<org.joml.Vector3d> consumer) Called to iterate over vectors within a box.- Parameters:
vectors- The vectors to iterate over.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The consumer.
-
forEachVector
public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The consumer.
-
forEachVector
public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The consumer.
-
forEachVector
public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<T> consumer) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The consumer.
-
forEachVector
public static <T,V> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V- The auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V- The auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V> void forEachVector(Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, BiConsumer<T, V> consumer, V objV) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V- The auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, @Nonnull TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (Iterable<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, @Nonnull TriConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over elements with a vector mapping within a box.- Type Parameters:
T- The element type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The elements to iterate over.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
forEachVector
public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The consumer.
-
forEachVector
public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The consumer.
-
forEachVector
public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntObjectConsumer<T> consumer) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The consumer.
-
forEachVector
public static <T,V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V- The auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V- The auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntBiObjectConsumer<T, V> consumer, V objV) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V- The auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The bi-consumer.objV- The auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothem, @Nonnull IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
forEachVector
public static <T,V1, void forEachVectorV2> (@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T, org.joml.Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, @Nonnull IntTriObjectConsumer<T, V1, V2> consumer, V1 objV1, V2 objV2) Called to iterate over map values with a vector mapping within a box.- Type Parameters:
T- The value type.V1- The first auxiliary object type.V2- The second auxiliary object type.- Parameters:
input- The map.func- The vector mapping function.originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemXMin- The X minimum apothem.apothemYMin- The Y minimum apothem.apothemZMin- The Z minimum apothem.apothemXMax- The X maximum apothem.apothemYMax- The Y maximum apothem.apothemZMax- The Z maximum apothem.consumer- The tri-consumer.objV1- The first auxiliary object.objV2- The second auxiliary object.
-
isInside
public static boolean isInside(double originX, double originY, double originZ, double apothem, @Nonnull org.joml.Vector3d vector) Called to check if a vector is within a box.- Parameters:
originX- The X origin.originY- The Y origin.originZ- The Z origin.apothem- The apothem.vector- The vector.- Returns:
trueif inside,falseotherwise.
-
isInside
public static boolean isInside(double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull org.joml.Vector3d vector) Called to check if a vector is within a box.- Parameters:
originX- The X origin.originY- The Y origin.originZ- The Z origin.apothemX- The X apothem.apothemY- The Y apothem.apothemZ- The Z apothem.vector- The vector.- Returns:
trueif inside,falseotherwise.
-
isInside
public static boolean isInside(double originX, double originY, double originZ, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax, @Nonnull org.joml.Vector3d vector) Called to check if a vector is within a box.- Parameters:
originX- The X origin.originY- The Y origin.originZ- The Z origin.xMin- The X minimum.yMin- The Y minimum.zMin- The Z minimum.xMax- The X maximum.yMax- The Y maximum.zMax- The Z maximum.vector- The vector.- Returns:
trueif inside,falseotherwise.
-