public class SizedVector
extends java.lang.Object
| Constructor and Description |
|---|
SizedVector(UnitVector uv,
double dblMagnitude)
SizedVector Constructor
|
| Modifier and Type | Method and Description |
|---|---|
UnitVector |
direction()
Retrieve the Unit Direction Vector
|
double |
magnitude()
Retrieve the Vector Magnitude
|
static SizedVector |
Standard(double[] adbl)
Construct an Instance of the Sized Vector from the Input Array
|
public SizedVector(UnitVector uv, double dblMagnitude) throws java.lang.Exception
uv - The Unit VectordblMagnitude - Magnitude of the Vectorjava.lang.Exception - Thriwn if the Inputs are Invalidpublic static final SizedVector Standard(double[] adbl)
adbl - The Input Double Arraypublic UnitVector direction()
public double magnitude()