de.fhpotsdam.unfolding.utils
Class ScreenPosition

java.lang.Object
  extended by processing.core.PVector
      extended by de.fhpotsdam.unfolding.utils.ScreenPosition
All Implemented Interfaces:
java.io.Serializable

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

ScreenPosition

public ScreenPosition(float x,
                      float y)

ScreenPosition

public ScreenPosition(float[] xy)