|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaGrinders.spatial.SpatialVector
JavaGrinders.spatial.PolarVector
public class PolarVector
characterizes a spherical vector with degrees for longitude and latitude, and vector length
| Constructor Summary | |
|---|---|
PolarVector()
constructor that creates a zero vector. |
|
PolarVector(double longDeg,
double latDeg,
double vecLength)
constructor specifying initial degrees for longitude and latitude, and vector length. |
|
| Method Summary | |
|---|---|
void |
copy(PolarVector v)
copy other vector into this one |
double |
getLat()
retrieves the latitude component in radians |
double |
getLatDeg()
retrieves the latitude component in degrees |
double |
getLength()
retrieves the length of the vector |
double |
getLong()
retrieves the longitude component in radians |
double |
getLongDeg()
retrieves the longitude component in degrees |
void |
setLat(double newLat)
sets the latitude component in radians |
void |
setLatDeg(double newLatDeg)
sets the latitude component in degrees |
void |
setLong(double newLong)
sets the longitude component in radians |
void |
setLongDeg(double newLongDeg)
sets the longitude component in degrees |
SpatialVector |
toSpatialVector()
returns the vector as polar coordinates |
java.lang.String |
toString()
Returns a string representation of the vector. |
void |
updateXYZ()
returns the vector as polar coordinates |
| Methods inherited from class JavaGrinders.spatial.SpatialVector |
|---|
applyVector, applyVector, clone, copy, cross, dot, equals, getConnect, getEuclidianDistance, getLengthSquared, getManhattanDistance, getManhattanLength, getPolarVector, getScaledPoint, getSpatialVector, getSquaredEuclidianDistance, getX, getXY, getY, getZ, minus, negate, negateX, negateY, negateZ, plus, remapLatLongToDistanceCoords, rotate, rotate, rotateXY, rotateXZ, scale, setConnect, setLength, setX, setY, setZ, subtract, times, toPoint, toPolarVector, unitLength |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PolarVector(double longDeg,
double latDeg,
double vecLength)
longDeg - longitude degreeslatDeg - latitude degreesvecLength - the length of the vectorpublic PolarVector()
| Method Detail |
|---|
public void copy(PolarVector v)
v - a 3d vectorpublic final double getLongDeg()
getLongDeg in class SpatialVectorpublic final double getLong()
getLong in class SpatialVectorpublic final double getLatDeg()
getLatDeg in class SpatialVectorpublic final double getLat()
getLat in class SpatialVectorpublic final double getLength()
getLength in class SpatialVectorpublic void setLongDeg(double newLongDeg)
newLongDeg - longitude degreespublic void setLong(double newLong)
newLong - longitude degrees in radianspublic void setLatDeg(double newLatDeg)
newLatDeg - latitude degreespublic void setLat(double newLat)
newLat - latitude degrees in radianspublic void updateXYZ()
public SpatialVector toSpatialVector()
toSpatialVector in class SpatialVectorpublic java.lang.String toString()
toString in class SpatialVector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||