com.swfm.mica.core
Class MiDeviceVector

java.lang.Object
  extended bycom.swfm.mica.core.MiDeviceVector

public class MiDeviceVector
extends java.lang.Object

This class represents a vector (directional distance) in device (pixel) space.

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
 int x
           
 int y
           
 
Constructor Summary
MiDeviceVector()
          Constructs a new MiDeviceVector.
MiDeviceVector(int x, int y)
          Constructs a new MiDeviceVector.
 
Method Summary
 void add(MiDeviceVector other)
          Adds the components of the given vector to this.
 java.lang.String toString()
          Return text that describes this vector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public int y
Constructor Detail

MiDeviceVector

public MiDeviceVector()
Constructs a new MiDeviceVector.


MiDeviceVector

public MiDeviceVector(int x,
                      int y)
Constructs a new MiDeviceVector.

Parameters:
x - the x component
y - the y component
Method Detail

add

public void add(MiDeviceVector other)
Adds the components of the given vector to this.

Parameters:
other - the vector to add to this one

toString

public java.lang.String toString()
Return text that describes this vector.