Class Vector3iUtil

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

public final class Vector3iUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic[]
     
    static final org.joml.Vector3ic[]
     
    static final org.joml.Vector3ic[][]
     
    static final org.joml.Vector3ic[]
     
    static final BuilderCodec<org.joml.Vector3i>
    The codec used to parse a Vector3i instance.
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
    static final org.joml.Vector3ic
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    inclusiveBoxVolume(int x1, int y1, int z1, int x2, int y2, int z2)
    Called to compute the inclusive block count of the axis-aligned box spanning two corners, given in either order.
    static org.joml.Vector3i
    max(org.joml.Vector3ic a, org.joml.Vector3ic b)
    Called to compute the component-wise maximum of two vectors.
    static org.joml.Vector3i
    min(org.joml.Vector3ic a, org.joml.Vector3ic b)
    Called to compute the component-wise minimum of two vectors.
    static org.joml.Vector3d
    toVector3d(org.joml.Vector3ic vec)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      @Nonnull public static final BuilderCodec<org.joml.Vector3i> CODEC
      The codec used to parse a Vector3i instance.
    • ZERO

      public static final org.joml.Vector3ic ZERO
    • UP

      public static final org.joml.Vector3ic UP
    • DOWN

      public static final org.joml.Vector3ic DOWN
    • FORWARD

      public static final org.joml.Vector3ic FORWARD
    • BACKWARD

      public static final org.joml.Vector3ic BACKWARD
    • LEFT

      public static final org.joml.Vector3ic LEFT
    • POS_X

      public static final org.joml.Vector3ic POS_X
    • POS_Z

      public static final org.joml.Vector3ic POS_Z
    • POS_Y

      public static final org.joml.Vector3ic POS_Y
    • NEG_X

      public static final org.joml.Vector3ic NEG_X
    • NEG_Y

      public static final org.joml.Vector3ic NEG_Y
    • NEG_Z

      public static final org.joml.Vector3ic NEG_Z
    • NORTH

      public static final org.joml.Vector3ic NORTH
    • SOUTH

      public static final org.joml.Vector3ic SOUTH
    • EAST

      public static final org.joml.Vector3ic EAST
    • WEST

      public static final org.joml.Vector3ic WEST
    • BLOCK_CORNERS

      public static final org.joml.Vector3ic[] BLOCK_CORNERS
    • BLOCK_SIDES

      public static final org.joml.Vector3ic[] BLOCK_SIDES
    • BLOCK_EDGES

      public static final org.joml.Vector3ic[] BLOCK_EDGES
    • BLOCK_PARTS

      public static final org.joml.Vector3ic[][] BLOCK_PARTS
    • ALL_ONES

      public static final org.joml.Vector3ic ALL_ONES
    • MIN

      public static final org.joml.Vector3ic MIN
    • MAX

      public static final org.joml.Vector3ic MAX
  • Method Details

    • max

      @Nonnull public static org.joml.Vector3i max(@Nonnull org.joml.Vector3ic a, @Nonnull org.joml.Vector3ic b)
      Called to compute the component-wise maximum of two vectors.
      Parameters:
      a - The first vector.
      b - The second vector.
      Returns:
      the component-wise maximum vector.
    • min

      @Nonnull public static org.joml.Vector3i min(@Nonnull org.joml.Vector3ic a, @Nonnull org.joml.Vector3ic b)
      Called to compute the component-wise minimum of two vectors.
      Parameters:
      a - The first vector.
      b - The second vector.
      Returns:
      the component-wise minimum vector.
    • inclusiveBoxVolume

      public static long inclusiveBoxVolume(int x1, int y1, int z1, int x2, int y2, int z2)
      Called to compute the inclusive block count of the axis-aligned box spanning two corners, given in either order. Widens to long before subtracting and saturates at Long.MAX_VALUE, so extreme corners cannot wrap to a small volume.
      Parameters:
      x1 - The first corner x.
      y1 - The first corner y.
      z1 - The first corner z.
      x2 - The second corner x.
      y2 - The second corner y.
      z2 - The second corner z.
      Returns:
      the inclusive box volume.
    • toVector3d

      public static org.joml.Vector3d toVector3d(org.joml.Vector3ic vec)