Class ScreenPosition

  extended by processing.core.PVector
      extended by de.fhpotsdam.unfolding.utils.ScreenPosition
All Implemented Interfaces:

public class ScreenPosition
extends processing.core.PVector

A ScreenPosition just a position on the screen. x and y are pixel coordinates in a given map. ScreenPosition offers all the convenient functions of PVector. Map has several functions to translate ScreenPosition to Location and vice versa.

See Also:
Serialized Form

Field Summary
Fields inherited from class processing.core.PVector
array, x, y, z
Constructor Summary
ScreenPosition(float[] xy)
ScreenPosition(float x, float y)
Method Summary
Methods inherited from class processing.core.PVector
add, add, add, add, angleBetween, array, cross, cross, cross, dist, dist, div, div, div, dot, dot, dot, equals, fromAngle, fromAngle, get, get, hashCode, heading, heading2D, lerp, lerp, lerp, limit, mag, magSq, mult, mult, mult, normalize, normalize, random2D, random2D, random2D, random2D, random3D, random3D, random3D, random3D, rotate, set, set, set, set, setMag, setMag, sub, sub, sub, sub, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


public ScreenPosition(float x,
                      float y)


public ScreenPosition(float[] xy)