Class Vector


public class Vector extends Object
I implemented this class to be parallel to Processing's internal PMatrix class. I would rather use a 1D float array here.
  • Field Details

    • v1

      public float v1
    • v2

      public float v2
    • v3

      public float v3
  • Constructor Details

    • Vector

      public Vector()
    • Vector

      public Vector(float v1, float v2, float v3)
    • Vector

      public Vector(Vector v)
  • Method Details

    • get

      public float get(int index)
    • set

      public void set(int index, float value)
    • add

      public Vector add(Vector that)
    • sub

      public Vector sub(Vector that)
    • dot

      public float dot(Vector that)
    • toString

      public String toString()
      toString in class Object