|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.graphics.Coord
com.partnersoft.v3x.graphics.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 |
|---|
| Fields inherited from class com.partnersoft.v3x.graphics.Coord |
|---|
coords |
| Constructor Summary | |
|---|---|
|
TurnVector()
Default constructor. |
protected |
TurnVector(double[] newCoords)
|
|
TurnVector(double distance,
double angle)
Creates a new TurnVector from angle and distance coordinates. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the TurnVector |
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 com.partnersoft.v3x.graphics.Coord |
|---|
at, copyState, distance, equals, getCoords, getDimensions, hashCode, round, setCoords, stretch, toString, translate, truncate |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TurnVector()
protected TurnVector(double[] newCoords)
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 Coord
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||