Vector2

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.NeuroSky.Util
Class Vector2

    java.lang.Object
      com.NeuroSky.Util.Vector2

    public class Vector2

extends java.lang.Object

Field Summary
`float` | `x`
`float` | `y`

Constructor Summary
`Vector2()`
`Vector2(double x, double y)`
`Vector2(float x, float y)`
`Vector2(Vector2 copy)`

Method Summary
`float` | `length()`
`Vector2` | `normalize()`
`void` | `set(double x, double y)`
`void` | `set(Vector2 copy)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### x

    public float x

### y

    public float y

Constructor Detail

### Vector2

    public Vector2()

### Vector2

    public Vector2(double x,
                   double y)

### Vector2

    public Vector2(float x,
                   float y)

### Vector2

    public Vector2(Vector2 copy)

Method Detail

### length

    public float length()

### normalize

    public Vector2 normalize()

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### set

    public void set(Vector2 copy)

### set

    public void set(double x,
                    double y)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD