Class Vector4l

java.lang.Object
org.spongepowered.math.vector.Vector4l
All Implemented Interfaces:
Serializable, Comparable<Vector4l>, Vectorl

@Immutable public final class Vector4l extends Object implements Vectorl, Comparable<Vector4l>, Serializable
See Also:
  • Field Details

    • ZERO

      public static final Vector4l ZERO
    • UNIT_X

      public static final Vector4l UNIT_X
    • UNIT_Y

      public static final Vector4l UNIT_Y
    • UNIT_Z

      public static final Vector4l UNIT_Z
    • UNIT_W

      public static final Vector4l UNIT_W
    • ONE

      public static final Vector4l ONE
  • Constructor Details

    • Vector4l

      public Vector4l(Vector2l v)
    • Vector4l

      public Vector4l(Vector2l v, double z, double w)
    • Vector4l

      public Vector4l(Vector2l v, long z, long w)
    • Vector4l

      public Vector4l(Vector3l v)
    • Vector4l

      public Vector4l(Vector3l v, double w)
    • Vector4l

      public Vector4l(Vector3l v, long w)
    • Vector4l

      public Vector4l(VectorNl v)
    • Vector4l

      public Vector4l(double x, double y, double z, double w)
    • Vector4l

      public Vector4l(long x, long y, long z, long w)
  • Method Details

    • x

      public long x()
    • withX

      public Vector4l withX(long x)
    • withX

      public Vector4l withX(double x)
    • y

      public long y()
    • withY

      public Vector4l withY(long y)
    • withY

      public Vector4l withY(double y)
    • z

      public long z()
    • withZ

      public Vector4l withZ(long z)
    • withZ

      public Vector4l withZ(double z)
    • w

      public long w()
    • withW

      public Vector4l withW(long w)
    • withW

      public Vector4l withW(double w)
    • add

      public Vector4l add(Vector4l v)
    • add

      public Vector4l add(double x, double y, double z, double w)
    • add

      public Vector4l add(long x, long y, long z, long w)
    • sub

      public Vector4l sub(Vector4l v)
    • sub

      public Vector4l sub(double x, double y, double z, double w)
    • sub

      public Vector4l sub(long x, long y, long z, long w)
    • mul

      public Vector4l mul(double a)
    • mul

      public Vector4l mul(long a)
      Specified by:
      mul in interface Vectorl
    • mul

      public Vector4l mul(Vector4l v)
    • mul

      public Vector4l mul(double x, double y, double z, double w)
    • mul

      public Vector4l mul(long x, long y, long z, long w)
    • div

      public Vector4l div(double a)
    • div

      public Vector4l div(long a)
      Specified by:
      div in interface Vectorl
    • div

      public Vector4l div(Vector4l v)
    • div

      public Vector4l div(double x, double y, double z, double w)
    • div

      public Vector4l div(long x, long y, long z, long w)
    • dot

      public long dot(Vector4l v)
    • dot

      public long dot(double x, double y, double z, double w)
    • dot

      public long dot(long x, long y, long z, long w)
    • project

      public Vector4l project(Vector4l v)
    • project

      public Vector4l project(double x, double y, double z, double w)
    • project

      public Vector4l project(long x, long y, long z, long w)
    • pow

      public Vector4l pow(double pow)
    • pow

      public Vector4l pow(long power)
      Specified by:
      pow in interface Vectorl
    • abs

      public Vector4l abs()
      Specified by:
      abs in interface Vectorl
    • negate

      public Vector4l negate()
      Specified by:
      negate in interface Vectorl
    • min

      public Vector4l min(Vector4l v)
    • min

      public Vector4l min(double x, double y, double z, double w)
    • min

      public Vector4l min(long x, long y, long z, long w)
    • max

      public Vector4l max(Vector4l v)
    • max

      public Vector4l max(double x, double y, double z, double w)
    • max

      public Vector4l max(long x, long y, long z, long w)
    • distanceSquared

      public long distanceSquared(Vector4l v)
    • distanceSquared

      public long distanceSquared(double x, double y, double z, double w)
    • distanceSquared

      public long distanceSquared(long x, long y, long z, long w)
    • distance

      public double distance(Vector4l v)
    • distance

      public double distance(double x, double y, double z, double w)
    • distance

      public double distance(long x, long y, long z, long w)
    • lengthSquared

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

      public double length()
      Specified by:
      length in interface Vectorl
    • minAxis

      public int minAxis()
      Return the axis with the minimal value.
      Specified by:
      minAxis in interface Vectorl
      Returns:
      int axis with minimal value
    • maxAxis

      public int maxAxis()
      Return the axis with the maximum value.
      Specified by:
      maxAxis in interface Vectorl
      Returns:
      int axis with maximum value
    • toVector2

      public Vector2l toVector2()
    • toVector3

      public Vector3l toVector3()
    • toVectorN

      public VectorNl toVectorN()
    • toArray

      public long[] toArray()
      Specified by:
      toArray in interface Vectorl
    • toInt

      public Vector4i toInt()
      Specified by:
      toInt in interface Vectorl
    • toLong

      public Vector4l toLong()
      Specified by:
      toLong in interface Vectorl
    • toFloat

      public Vector4f toFloat()
      Specified by:
      toFloat in interface Vectorl
    • toDouble

      public Vector4d toDouble()
      Specified by:
      toDouble in interface Vectorl
    • compareTo

      public int compareTo(Vector4l v)
      Specified by:
      compareTo in interface Comparable<Vector4l>
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static Vector4l from(long n)
    • from

      public static Vector4l from(long x, long y, long z, long w)