Class Vector4f

java.lang.Object
net.minecraft.client.util.math.Vector4f

@Environment(CLIENT)
public class Vector4f
extends Object
  • Field Details

    • x

      private float x
    • y

      private float y
    • z

      private float z
    • w

      private float w
  • Constructor Details

    • Vector4f

      public Vector4f()
    • Vector4f

      public Vector4f​(float x, float y, float z, float w)
    • Vector4f

      public Vector4f​(Vector3f vector)
  • Method Details

    • equals

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

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

      public float getX()
    • getY

      public float getY()
    • getZ

      public float getZ()
    • getW

      public float getW()
    • multiplyComponentwise

      public void multiplyComponentwise​(Vector3f vector)
    • set

      public void set​(float x, float y, float z, float w)
    • dotProduct

      public float dotProduct​(Vector4f other)
    • normalize

      public boolean normalize()
    • transform

      public void transform​(Matrix4f matrix)
    • rotate

      public void rotate​(Quaternion rotation)
    • normalizeProjectiveCoordinates

      public void normalizeProjectiveCoordinates()
    • toString

      public String toString()
      Overrides:
      toString in class Object