Class VectorBoxUtil

java.lang.Object
com.hypixel.hytale.math.vector.VectorBoxUtil

public class VectorBoxUtil extends Object
Utility class for performing box-related vector operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 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> 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, 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> 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, 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> void
    forEachVector(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 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.
    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.
    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.
    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> 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, 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> void
    forEachVector(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> void
    forEachVector(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 boolean
    isInside(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 boolean
    isInside(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 boolean
    isInside(double originX, double originY, double originZ, double apothem, org.joml.Vector3d vector)
    Called to check if a vector is within a box.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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,V2> void forEachVector(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,V2> void forEachVector(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,V2> 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, @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,V2> 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, @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,V2> 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, @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,V2> 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, @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:
      true if inside, false otherwise.
    • 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:
      true if inside, false otherwise.
    • 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:
      true if inside, false otherwise.