|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.TurnVector
public class TurnVector
A TurnArrayList is a 2-dimensional coordinate expressing a magnitude and angular direction. Conversions to various popular angular measurements are provided in ArrayListLib.
| 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 |
|---|
public double distance
public double angle
| Constructor Detail |
|---|
public TurnVector()
public TurnVector(double distance,
double angle)
| Method Detail |
|---|
public double getAngle()
public void setAngle(double newAngle)
public double getDistance()
public void setDistance(double newDistance)
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||