org.mbari.siam.distributed
Class Velocity

java.lang.Object
  extended by org.mbari.siam.distributed.Velocity
All Implemented Interfaces:
java.io.Serializable

public class Velocity
extends java.lang.Object
implements java.io.Serializable

Velocity

See Also:
Serialized Form

Constructor Summary
Velocity()
          No-argument constructor, initializes velocity to zero
Velocity(double x, double y, double z)
          X/Y/Z constructor, values in cm/sec
 
Method Summary
 void add(Velocity v)
          Add Velocity vectors
 void clear()
          Initialize velocity to 0
 void div(int divisor)
          Divide Velocity by a scalar
 double getX()
          Return velocity in X direction in cm/sec
 double getY()
          Return velocity in Y direction in cm/sec
 double getZ()
          Return velocity in Z direction in cm/sec
 void setX(double x)
          Set velocity in X direction in cm/sec
 void setY(double y)
          Set velocity in Y direction in cm/sec
 void setZ(double z)
          Set velocity in Z direction in cm/sec
 java.lang.String toString()
          Return String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Velocity

public Velocity()
No-argument constructor, initializes velocity to zero


Velocity

public Velocity(double x,
                double y,
                double z)
X/Y/Z constructor, values in cm/sec

Method Detail

getX

public double getX()
Return velocity in X direction in cm/sec


getY

public double getY()
Return velocity in Y direction in cm/sec


getZ

public double getZ()
Return velocity in Z direction in cm/sec


setX

public void setX(double x)
Set velocity in X direction in cm/sec


setY

public void setY(double y)
Set velocity in Y direction in cm/sec


setZ

public void setZ(double z)
Set velocity in Z direction in cm/sec


clear

public void clear()
Initialize velocity to 0


add

public void add(Velocity v)
Add Velocity vectors


div

public void div(int divisor)
Divide Velocity by a scalar


toString

public java.lang.String toString()
Return String representation

Overrides:
toString in class java.lang.Object


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.