Class Vector3f

All Implemented Interfaces:
Cloneable<Vector3f>, Printable

public class Vector3f extends VectorFloat<Vector3f>
3-dimensional vector with floating point precision. GLSL equivalent to vec3.
  • Field Details

    • x

      public float x
    • y

      public float y
    • z

      public float z
    • temp

      public static final Vector3f temp
      Reusable temporary vector, to avoid repeatedly creating new instances in performance-critical contexts.
  • Constructor Details

    • Vector3f

      public Vector3f()
      Creates a default 3-dimensional vector with all values set to 0f.
    • Vector3f

      public Vector3f(float x, float y, float z)
      Creates a 3-dimensional vector with given values.
  • Method Details