Class Vector3

java.lang.Object
org.joml.Vector3f
zombie.core.math.Vector3
All Implemented Interfaces:
Externalizable, Serializable, org.joml.Vector3fc

public class Vector3 extends org.joml.Vector3f
See Also:
  • Field Summary

    Fields inherited from class org.joml.Vector3f

    x, y, z
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Vector3(float x, float y, float z)
     
    Vector3(org.lwjgl.util.vector.Vector3f v)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.lwjgl.util.vector.Vector3f
    addScaled(org.lwjgl.util.vector.Vector3f a, org.lwjgl.util.vector.Vector3f b, float scale, org.lwjgl.util.vector.Vector3f result)
    Result = a + b * scale
     
    float
    dot(Vector3 vec)
     
    org.lwjgl.util.vector.Vector3f
    Get()
     
     
    void
    Set(org.lwjgl.util.vector.Vector3f v)
     
    static org.lwjgl.util.vector.Vector3f
    setScaled(org.lwjgl.util.vector.Vector3f a, float scale, org.lwjgl.util.vector.Vector3f result)
    Result = a * scale

    Methods inherited from class org.joml.Vector3f

    absolute, absolute, add, add, add, add, angle, angleCos, angleSigned, angleSigned, ceil, ceil, cross, cross, cross, cross, distance, distance, distance, distanceSquared, distanceSquared, distanceSquared, div, div, div, div, div, div, dot, dot, equals, equals, equals, floor, floor, fma, fma, fma, fma, get, get, get, get, get, get, get, get, getToAddress, half, half, half, half, hashCode, hermite, isFinite, length, length, lengthSquared, lengthSquared, lerp, lerp, max, max, maxComponent, min, min, minComponent, mul, mul, mul, mul, mul, mul, mul, mul, mul, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulAdd, mulDirection, mulDirection, mulDirection, mulDirection, mulDirection, mulDirection, mulPosition, mulPosition, mulPosition, mulPosition, mulPositionW, mulPositionW, mulProject, mulProject, mulProject, mulTranspose, mulTranspose, mulTransposeDirection, mulTransposeDirection, mulTransposePosition, mulTransposePosition, negate, negate, normalize, normalize, normalize, normalize, orthogonalize, orthogonalize, orthogonalizeUnit, orthogonalizeUnit, readExternal, reflect, reflect, reflect, reflect, rotate, rotate, rotateAxis, rotateAxis, rotateX, rotateX, rotateY, rotateY, rotateZ, rotateZ, rotationTo, rotationTo, round, round, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setComponent, setFromAddress, smoothStep, sub, sub, sub, sub, toString, toString, writeExternal, x, y, z, zero

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Vector3

      public Vector3()
    • Vector3

      public Vector3(float x, float y, float z)
    • Vector3

      public Vector3(org.lwjgl.util.vector.Vector3f v)
    • Vector3

      public Vector3(Vector3 v)
  • Method Details

    • addScaled

      public static org.lwjgl.util.vector.Vector3f addScaled(org.lwjgl.util.vector.Vector3f a, org.lwjgl.util.vector.Vector3f b, float scale, org.lwjgl.util.vector.Vector3f result)
      Result = a + b * scale
      Returns:
      The supplied result vector.
    • setScaled

      public static org.lwjgl.util.vector.Vector3f setScaled(org.lwjgl.util.vector.Vector3f a, float scale, org.lwjgl.util.vector.Vector3f result)
      Result = a * scale
      Returns:
      The supplied result vector.
    • Get

      public org.lwjgl.util.vector.Vector3f Get()
    • Set

      public void Set(org.lwjgl.util.vector.Vector3f v)
    • reset

      public Vector3 reset()
    • dot

      public float dot(Vector3 vec)
    • cross

      public Vector3 cross(Vector3 vec)