Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.mp
Class Velocity

java.lang.Object
  extended byoracle.panama.mp.Velocity


public class Velocity
extends java.lang.Object

A class representing the velocity of a moving object. The speed of the object is stored in meters/second. The bearing angle of the movement is stored in degrees from the North and clockwise.


Constructor Summary
Velocity(double value, double bearing)
Constructor

Method Summary
double getBearingAngle()
Get the bearing angle of the movement in degrees from the North and clockwise.
double getValue()
Get the speed in meters/second.
java.lang.String toString()
Returns the string representation of the Velocity object

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

Constructor Detail

Velocity

public Velocity(double value,
                double bearing)
Constructor
Parameters:
value - the speed of a moving object in meters/second
bearing - the bearing of a moving object in degrees from the North and clockwise

Method Detail

getBearingAngle

public double getBearingAngle()
Get the bearing angle of the movement in degrees from the North and clockwise.
Returns:
a double representing the bearing angle in degrees from the North and clockwise

getValue

public double getValue()
Get the speed in meters/second.
Returns:
a double representing the speed in meters/second

toString

public java.lang.String toString()
Returns the string representation of the Velocity object
Returns:
A string representation of the Velocity object

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.