Class Tuple3f

  • Direct Known Subclasses:
    Point3f, Vector3f

    public class Tuple3f
    extends java.lang.Object
    Vector math package, converted to look similar to javax.vecmath.
    • Field Detail

      • x

        public float x
      • y

        public float y
      • z

        public float z
    • Constructor Detail

      • Tuple3f

        public Tuple3f()
      • Tuple3f

        public Tuple3f​(float[] x)
      • Tuple3f

        public Tuple3f​(float x,
                       float y,
                       float z)
      • Tuple3f

        public Tuple3f​(Tuple3f t)
    • Method Detail

      • absolute

        public void absolute()
      • absolute

        public void absolute​(Tuple3f t)
      • clamp

        public void clamp​(float min,
                          float max)
      • set

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

        public void set​(float[] x)
      • set

        public void set​(Tuple3f t)
      • get

        public void get​(Tuple3f t)
      • get

        public void get​(float[] t)
      • negate

        public void negate()
      • negate

        public void negate​(Tuple3f t)
      • interpolate

        public void interpolate​(Tuple3f t,
                                float alpha)
      • scale

        public void scale​(float s)
      • add

        public void add​(Tuple3f t)
      • sub

        public void sub​(Tuple3f t)
      • scaleAdd

        public void scaleAdd​(float s,
                             Tuple3f t)
      • scaleAdd

        public void scaleAdd​(float s,
                             Tuple3f t1,
                             Tuple3f t2)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object