|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--VectorQuantity
VectoryQuantity is a "struct class" -- a simple container that represents the components of a vector: magnitude and direction.
Field Summary | |
double |
direction
The direction of the vector (in radians), |
double |
magnitude
The magnitude of the vector. |
Constructor Summary | |
VectorQuantity()
Construct a new VectorQuantity with magnitude and direction of zero. |
|
VectorQuantity(double magnitude,
double direction) Construct a new VectorQuantity object with the specified magnitude and direction. |
Method Summary | |
java.lang.String |
toString()
Return an informative string representation of this VectorQuantity object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public double magnitude
public double direction
Constructor Detail |
public VectorQuantity()
public VectorQuantity(double magnitude, double direction)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |