com.partnersoft.geometry
Class TurnVector

java.lang.Object
  extended by com.partnersoft.geometry.TurnVector

public class TurnVector
extends java.lang.Object

A TurnArrayList is a 2-dimensional coordinate expressing a magnitude and angular direction. Conversions to various popular angular measurements are provided in ArrayListLib.

Author:
Paul Reavis Copyright 1998 Partner Software, Inc.

Field Summary
 double angle
           
 double distance
           
 
Constructor Summary
TurnVector()
          Default constructor.
TurnVector(double distance, double angle)
          Creates a new TurnVector from angle and distance coordinates.
 
Method Summary
 java.lang.Object clone()
           
 double getAngle()
          Get the magnitude of the angle dimension in radians
 double getDistance()
          Returns the magnitude of the distance dimension.
 void setAngle(double newAngle)
          Sets the magnitude of the angle dimension.
 void setDistance(double newDistance)
          Sets the magnitude of the distance dimension.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distance

public double distance

angle

public double angle
Constructor Detail

TurnVector

public TurnVector()
Default constructor.


TurnVector

public TurnVector(double distance,
                  double angle)
Creates a new TurnVector from angle and distance coordinates.

Method Detail

getAngle

public double getAngle()
Get the magnitude of the angle dimension in radians


setAngle

public void setAngle(double newAngle)
Sets the magnitude of the angle dimension.


getDistance

public double getDistance()
Returns the magnitude of the distance dimension.


setDistance

public void setDistance(double newDistance)
Sets the magnitude of the distance dimension.


clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object