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 v)
    • Vector4i

      public Vector4i​(Vector3ic v, int w)
    • Vector4i

      public Vector4i​(Vector2ic v, int z, int w)
    • Vector4i

      public Vector4i​(int s)
    • Vector4i

      public Vector4i​(int x, int y, int z, int w)
    • Vector4i

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

      public Vector4i​(int index, java.nio.ByteBuffer buffer)
    • Vector4i

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

      public Vector4i​(int index, java.nio.IntBuffer buffer)
  • 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 v)
    • set

      public Vector4i set​(Vector3ic v, int w)
    • set

      public Vector4i set​(Vector2ic v, int z, int w)
    • set

      public Vector4i set​(int s)
    • set

      public Vector4i set​(int x, int y, int z, int w)
    • set

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

      public Vector4i set​(int index, java.nio.ByteBuffer buffer)
    • set

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

      public Vector4i set​(int index, java.nio.IntBuffer buffer)
    • setComponent

      public Vector4i setComponent​(int component, int value) throws java.lang.IllegalArgumentException
      Throws:
      java.lang.IllegalArgumentException
    • get

      public java.nio.IntBuffer get​(java.nio.IntBuffer buffer)
      Specified by:
      get in interface Vector4ic
    • get

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

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

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

      public Vector4i sub​(Vector4ic v)
    • sub

      public Vector4i sub​(int x, int y, int z, int w)
    • sub

      public Vector4i sub​(Vector4ic v, Vector4i dest)
      Specified by:
      sub in interface Vector4ic
    • sub

      public Vector4i sub​(int x, int y, int z, int w, Vector4i dest)
      Specified by:
      sub in interface Vector4ic
    • add

      public Vector4i add​(Vector4ic v)
    • add

      public Vector4i add​(Vector4ic v, Vector4i dest)
      Specified by:
      add in interface Vector4ic
    • add

      public Vector4i add​(int x, int y, int z, int w)
    • add

      public Vector4i add​(int x, int y, int z, int w, Vector4i dest)
      Specified by:
      add in interface Vector4ic
    • mul

      public Vector4i mul​(Vector4ic v)
    • mul

      public Vector4i mul​(Vector4ic v, Vector4i dest)
      Specified by:
      mul in interface Vector4ic
    • div

      public Vector4i div​(Vector4ic v)
    • div

      public Vector4i div​(Vector4ic v, Vector4i dest)
      Specified by:
      div in interface Vector4ic
    • mul

      public Vector4i mul​(float scalar)
    • mul

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

      public Vector4i div​(int scalar)
    • div

      public Vector4i div​(float scalar, Vector4i dest)
      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 v)
      Specified by:
      distance in interface Vector4ic
    • distance

      public double distance​(int x, int y, int z, int w)
      Specified by:
      distance in interface Vector4ic
    • distanceSquared

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

      public int distanceSquared​(int x, int y, int z, int w)
      Specified by:
      distanceSquared in interface Vector4ic
    • dot

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

      public Vector4i zero()
    • negate

      public Vector4i negate()
    • negate

      public Vector4i negate​(Vector4i dest)
      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 formatter)
    • writeExternal

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

      public void readExternal​(java.io.ObjectInput in) 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 v)
    • max

      public Vector4i max​(Vector4ic v)
    • hashCode

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

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

      public Vector4ic toImmutable()