Class Vector3l

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

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

    • ZERO

      public static final Vector3l ZERO
    • UNIT_X

      public static final Vector3l UNIT_X
    • UNIT_Y

      public static final Vector3l UNIT_Y
    • UNIT_Z

      public static final Vector3l UNIT_Z
    • ONE

      public static final Vector3l ONE
    • UP

      public static final Vector3l UP
    • FORWARD

      public static final Vector3l FORWARD
  • Constructor Details

    • Vector3l

      public Vector3l(Vector2l v)
    • Vector3l

      public Vector3l(Vector2l v, double z)
    • Vector3l

      public Vector3l(Vector2l v, long z)
    • Vector3l

      public Vector3l(Vector4l v)
    • Vector3l

      public Vector3l(VectorNl v)
    • Vector3l

      public Vector3l(double x, double y, double z)
    • Vector3l

      public Vector3l(long x, long y, long z)
  • Method Details

    • x

      public long x()
    • y

      public long y()
    • z

      public long z()
    • add

      public Vector3l add(Vector3l v)
    • add

      public Vector3l add(double x, double y, double z)
    • add

      public Vector3l add(long x, long y, long z)
    • sub

      public Vector3l sub(Vector3l v)
    • sub

      public Vector3l sub(double x, double y, double z)
    • sub

      public Vector3l sub(long x, long y, long z)
    • mul

      public Vector3l mul(double a)
    • mul

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

      public Vector3l mul(Vector3l v)
    • mul

      public Vector3l mul(double x, double y, double z)
    • mul

      public Vector3l mul(long x, long y, long z)
    • div

      public Vector3l div(double a)
    • div

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

      public Vector3l div(Vector3l v)
    • div

      public Vector3l div(double x, double y, double z)
    • div

      public Vector3l div(long x, long y, long z)
    • dot

      public long dot(Vector3l v)
    • dot

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

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

      public Vector3l project(Vector3l v)
    • project

      public Vector3l project(double x, double y, double z)
    • project

      public Vector3l project(long x, long y, long z)
    • cross

      public Vector3l cross(Vector3l v)
    • cross

      public Vector3l cross(double x, double y, double z)
    • cross

      public Vector3l cross(long x, long y, long z)
    • pow

      public Vector3l pow(double pow)
    • pow

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

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

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

      public Vector3l min(Vector3l v)
    • min

      public Vector3l min(double x, double y, double z)
    • min

      public Vector3l min(long x, long y, long z)
    • max

      public Vector3l max(Vector3l v)
    • max

      public Vector3l max(double x, double y, double z)
    • max

      public Vector3l max(long x, long y, long z)
    • distanceSquared

      public long distanceSquared(Vector3l v)
    • distanceSquared

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

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

      public double distance(Vector3l v)
    • distance

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

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

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

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

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

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

      public Vector2l toVector2()
    • toVector2

      public Vector2l toVector2(boolean useZ)
    • toVector4

      public Vector4l toVector4()
    • toVector4

      public Vector4l toVector4(double w)
    • toVector4

      public Vector4l toVector4(long w)
    • toVectorN

      public VectorNl toVectorN()
    • toArray

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

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

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

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

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

      public int compareTo(Vector3l v)
      Specified by:
      compareTo in interface Comparable<Vector3l>
    • 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 Vector3l from(long n)
    • from

      public static Vector3l from(long x, long y, long z)