Package org.joml

Class Vector4i

java.lang.Object
org.joml.Vector4i
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Vector4ic

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

    • x

      public int x
    • y

      public int y
    • z

      public int z
    • w

      public int w
  • Constructor Details

    • Vector4i

      public Vector4i()
    • Vector4i

      public Vector4i​(Vector4ic vector4ic)
    • Vector4i

      public Vector4i​(Vector3ic vector3ic, int int1)
    • Vector4i

      public Vector4i​(Vector2ic vector2ic, int int1, int int2)
    • Vector4i

      public Vector4i​(int int1)
    • Vector4i

      public Vector4i​(int int1, int int2, int int3, int int4)
    • Vector4i

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

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

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

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

    • x

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

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

      public int z()
      Specified by:
      z in interface Vector4ic
    • w

      public int w()
      Specified by:
      w in interface Vector4ic
    • set

      public Vector4i set​(Vector4ic vector4ic)
    • set

      public Vector4i set​(Vector3ic vector3ic, int int1)
    • set

      public Vector4i set​(Vector2ic vector2ic, int int1, int int2)
    • set

      public Vector4i set​(int int1)
    • set

      public Vector4i set​(int int1, int int2, int int3, int int4)
    • set

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

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

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

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

      public Vector4i 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 Vector4ic
    • get

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

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

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

      public Vector4i sub​(Vector4ic vector4ic)
    • sub

      public Vector4i sub​(int int1, int int2, int int3, int int4)
    • sub

      public Vector4i sub​(Vector4ic vector4ic, Vector4i vector4i)
      Specified by:
      sub in interface Vector4ic
    • sub

      public Vector4i sub​(int int1, int int2, int int3, int int4, Vector4i vector4i)
      Specified by:
      sub in interface Vector4ic
    • add

      public Vector4i add​(Vector4ic vector4ic)
    • add

      public Vector4i add​(Vector4ic vector4ic, Vector4i vector4i)
      Specified by:
      add in interface Vector4ic
    • add

      public Vector4i add​(int int1, int int2, int int3, int int4)
    • add

      public Vector4i add​(int int1, int int2, int int3, int int4, Vector4i vector4i)
      Specified by:
      add in interface Vector4ic
    • mul

      public Vector4i mul​(Vector4ic vector4ic)
    • mul

      public Vector4i mul​(Vector4ic vector4ic, Vector4i vector4i)
      Specified by:
      mul in interface Vector4ic
    • div

      public Vector4i div​(Vector4ic vector4ic)
    • div

      public Vector4i div​(Vector4ic vector4ic, Vector4i vector4i)
      Specified by:
      div in interface Vector4ic
    • mul

      public Vector4i mul​(float float1)
    • mul

      public Vector4i mul​(float float1, Vector4i vector4i)
      Specified by:
      mul in interface Vector4ic
    • div

      public Vector4i div​(int int1)
    • div

      public Vector4i div​(float float1, Vector4i vector4i)
      Specified by:
      div in interface Vector4ic
    • lengthSquared

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

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

      public double distance​(Vector4ic vector4ic)
      Specified by:
      distance in interface Vector4ic
    • distance

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

      public int distanceSquared​(Vector4ic vector4ic)
      Specified by:
      distanceSquared in interface Vector4ic
    • distanceSquared

      public int distanceSquared​(int int1, int int2, int int3, int int4)
      Specified by:
      distanceSquared in interface Vector4ic
    • dot

      public int dot​(Vector4ic vector4ic)
      Specified by:
      dot in interface Vector4ic
    • zero

      public Vector4i zero()
    • negate

      public Vector4i negate()
    • negate

      public Vector4i negate​(Vector4i vector4i)
      Specified by:
      negate in interface Vector4ic
    • 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
    • min

      public Vector4i min​(Vector4ic vector4ic)
    • max

      public Vector4i max​(Vector4ic vector4ic)
    • 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 Vector4ic toImmutable()