Package org.joml

Class Vector3i

java.lang.Object
org.joml.Vector3i
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Vector3ic

public class Vector3i
extends java.lang.Object
implements java.io.Externalizable, Vector3ic
See Also:
Serialized Form
  • Field Details

    • x

      public int x
    • y

      public int y
    • z

      public int z
  • Constructor Details

    • Vector3i

      public Vector3i()
    • Vector3i

      public Vector3i​(int int1)
    • Vector3i

      public Vector3i​(int int1, int int2, int int3)
    • Vector3i

      public Vector3i​(Vector3ic vector3ic)
    • Vector3i

      public Vector3i​(Vector2ic vector2ic, int int1)
    • Vector3i

      public Vector3i​(java.nio.ByteBuffer byteBuffer)
    • Vector3i

      public Vector3i​(int int1, java.nio.ByteBuffer byteBuffer)
    • Vector3i

      public Vector3i​(java.nio.IntBuffer intBuffer)
    • Vector3i

      public Vector3i​(int int1, java.nio.IntBuffer intBuffer)
  • Method Details

    • x

      public int x()
      Specified by:
      x in interface Vector3ic
    • y

      public int y()
      Specified by:
      y in interface Vector3ic
    • z

      public int z()
      Specified by:
      z in interface Vector3ic
    • set

      public Vector3i set​(Vector3ic vector3ic)
    • set

      public Vector3i set​(Vector3dc vector3dc)
    • set

      public Vector3i set​(Vector2ic vector2ic, int int1)
    • set

      public Vector3i set​(int int1)
    • set

      public Vector3i set​(int int1, int int2, int int3)
    • set

      public Vector3i set​(java.nio.ByteBuffer byteBuffer)
    • set

      public Vector3i set​(int int1, java.nio.ByteBuffer byteBuffer)
    • set

      public Vector3i set​(java.nio.IntBuffer intBuffer)
    • set

      public Vector3i set​(int int1, java.nio.IntBuffer intBuffer)
    • setComponent

      public Vector3i setComponent​(int int1, int int2) throws java.lang.IllegalArgumentException
      Throws:
      java.lang.IllegalArgumentException
    • get

      public java.nio.IntBuffer get​(java.nio.IntBuffer intBuffer)
      Specified by:
      get in interface Vector3ic
    • get

      public java.nio.IntBuffer get​(int int1, java.nio.IntBuffer intBuffer)
      Specified by:
      get in interface Vector3ic
    • get

      public java.nio.ByteBuffer get​(java.nio.ByteBuffer byteBuffer)
      Specified by:
      get in interface Vector3ic
    • get

      public java.nio.ByteBuffer get​(int int1, java.nio.ByteBuffer byteBuffer)
      Specified by:
      get in interface Vector3ic
    • sub

      public Vector3i sub​(Vector3ic vector3ic)
    • sub

      public Vector3i sub​(Vector3ic vector3ic, Vector3i vector3i)
      Specified by:
      sub in interface Vector3ic
    • sub

      public Vector3i sub​(int int1, int int2, int int3)
    • sub

      public Vector3i sub​(int int1, int int2, int int3, Vector3i vector3i)
      Specified by:
      sub in interface Vector3ic
    • add

      public Vector3i add​(Vector3ic vector3ic)
    • add

      public Vector3i add​(Vector3ic vector3ic, Vector3i vector3i)
      Specified by:
      add in interface Vector3ic
    • add

      public Vector3i add​(int int1, int int2, int int3)
    • add

      public Vector3i add​(int int1, int int2, int int3, Vector3i vector3i)
      Specified by:
      add in interface Vector3ic
    • mul

      public Vector3i mul​(int int1)
    • mul

      public Vector3i mul​(int int1, Vector3i vector3i)
      Specified by:
      mul in interface Vector3ic
    • mul

      public Vector3i mul​(Vector3ic vector3ic)
    • mul

      public Vector3i mul​(Vector3ic vector3ic, Vector3i vector3i)
      Specified by:
      mul in interface Vector3ic
    • mul

      public Vector3i mul​(int int1, int int2, int int3)
    • mul

      public Vector3i mul​(int int1, int int2, int int3, Vector3i vector3i)
      Specified by:
      mul in interface Vector3ic
    • lengthSquared

      public long lengthSquared()
      Specified by:
      lengthSquared in interface Vector3ic
    • length

      public double length()
      Specified by:
      length in interface Vector3ic
    • distance

      public double distance​(Vector3ic vector3ic)
      Specified by:
      distance in interface Vector3ic
    • distance

      public double distance​(int int1, int int2, int int3)
      Specified by:
      distance in interface Vector3ic
    • distanceSquared

      public long distanceSquared​(Vector3ic vector3ic)
      Specified by:
      distanceSquared in interface Vector3ic
    • distanceSquared

      public long distanceSquared​(int int1, int int2, int int3)
      Specified by:
      distanceSquared in interface Vector3ic
    • zero

      public Vector3i zero()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • toString

      public java.lang.String toString​(java.text.NumberFormat numberFormat)
    • writeExternal

      public void writeExternal​(java.io.ObjectOutput objectOutput) throws java.io.IOException
      Specified by:
      writeExternal in interface java.io.Externalizable
      Throws:
      java.io.IOException
    • readExternal

      public void readExternal​(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException
      Specified by:
      readExternal in interface java.io.Externalizable
      Throws:
      java.io.IOException
      java.lang.ClassNotFoundException
    • negate

      public Vector3i negate()
    • negate

      public Vector3i negate​(Vector3i vector3i)
      Specified by:
      negate in interface Vector3ic
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object object)
      Overrides:
      equals in class java.lang.Object
    • toImmutable

      public Vector3ic toImmutable()