Class VectorBoxUtil

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

public class VectorBoxUtil extends Object
  • 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,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)
     
    static <T> void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntObjectConsumer<T> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,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)
     
    static <T, V> void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntBiObjectConsumer<T,V> consumer, V objV)
     
    static <T> void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntObjectConsumer<T> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntTriObjectConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
     
    static <T, V> void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, IntBiObjectConsumer<T,V> consumer, V objV)
     
    static <T> void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, IntObjectConsumer<T> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, IntTriObjectConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
     
    static void
    forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<Vector3d> consumer)
     
    static void
    forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<Vector3d> consumer)
     
    static void
    forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothem, Consumer<Vector3d> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(Iterable<T> input, Function<T,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)
     
    static <T, V> void
    forEachVector(Iterable<T> input, Function<T,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)
     
    static <T> void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<T> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, TriConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
     
    static <T, V> void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, BiConsumer<T,V> consumer, V objV)
     
    static <T> void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<T> consumer)
     
    static <T, V1, V2>
    void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, TriConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
     
    static <T, V> void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, BiConsumer<T,V> consumer, V objV)
     
    static <T> void
    forEachVector(Iterable<T> input, Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, Consumer<T> consumer)
     
    static boolean
    isInside(double originX, double originY, double originZ, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax, Vector3d vector)
     
    static boolean
    isInside(double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Vector3d vector)
     
    static boolean
    isInside(double originX, double originY, double originZ, double apothem, Vector3d vector)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VectorBoxUtil

      public VectorBoxUtil()
  • Method Details

    • forEachVector

      public static void forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothem, Consumer<Vector3d> consumer)
    • forEachVector

      public static void forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<Vector3d> consumer)
    • forEachVector

      public static void forEachVector(Iterable<Vector3d> vectors, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<Vector3d> consumer)
    • forEachVector

      public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, Consumer<T> consumer)
    • forEachVector

      public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, Consumer<T> consumer)
    • forEachVector

      public static <T> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, Consumer<T> consumer)
    • forEachVector

      public static <T, V> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, BiConsumer<T,V> consumer, V objV)
    • forEachVector

      public static <T, V> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, BiConsumer<T,V> consumer, V objV)
    • forEachVector

      public static <T, V> void forEachVector(Iterable<T> input, @Nonnull Function<T,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)
    • forEachVector

      public static <T, V1, V2> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, @Nonnull TriConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
    • forEachVector

      public static <T, V1, V2> void forEachVector(Iterable<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull TriConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
    • forEachVector

      public static <T, V1, V2> void forEachVector(Iterable<T> input, @Nonnull Function<T,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)
    • forEachVector

      public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, IntObjectConsumer<T> consumer)
    • forEachVector

      public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntObjectConsumer<T> consumer)
    • forEachVector

      public static <T> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemXMin, double apothemYMin, double apothemZMin, double apothemXMax, double apothemYMax, double apothemZMax, IntObjectConsumer<T> consumer)
    • forEachVector

      public static <T, V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, IntBiObjectConsumer<T,V> consumer, V objV)
    • forEachVector

      public static <T, V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, IntBiObjectConsumer<T,V> consumer, V objV)
    • forEachVector

      public static <T, V> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,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)
    • forEachVector

      public static <T, V1, V2> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothem, @Nonnull IntTriObjectConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
    • forEachVector

      public static <T, V1, V2> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,Vector3d> func, double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull IntTriObjectConsumer<T,V1,V2> consumer, V1 objV1, V2 objV2)
    • forEachVector

      public static <T, V1, V2> void forEachVector(@Nonnull it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> input, @Nonnull Function<T,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)
    • isInside

      public static boolean isInside(double originX, double originY, double originZ, double apothem, @Nonnull Vector3d vector)
    • isInside

      public static boolean isInside(double originX, double originY, double originZ, double apothemX, double apothemY, double apothemZ, @Nonnull Vector3d vector)
    • isInside

      public static boolean isInside(double originX, double originY, double originZ, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax, @Nonnull Vector3d vector)