game.protocol
Class PolarCoord

java.lang.Object
  extended by game.protocol.PolarCoord
All Implemented Interfaces:
PolarVect

 class PolarCoord
extends java.lang.Object
implements PolarVect


Constructor Summary
PolarCoord(double mag, double ang)
           
 
Method Summary
 double getAngle()
           
 double getMagnitude()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolarCoord

public PolarCoord(double mag,
                  double ang)
Method Detail

getAngle

public double getAngle()
Specified by:
getAngle in interface PolarVect
Returns:
angle in degrees between 0 and 360

getMagnitude

public double getMagnitude()
Specified by:
getMagnitude in interface PolarVect
Returns:
magnitude