Package velo.ladaalpha.fields.physics
Class SimpleVector
java.lang.Object
velo.ladaalpha.fields.physics.SimpleVector
The Class SimpleVector.
- 
Constructor Summary
ConstructorsConstructorDescriptionSimpleVector(double magnitude, String direction) Instantiates a new simple vector. - 
Method Summary
Modifier and TypeMethodDescriptionGets the direction.doubleGets the magnitude.voidsetDirection(String direction) Sets the direction.voidsetMagnitude(double magnitude) Sets the magnitude.toString()To string. 
- 
Constructor Details
- 
SimpleVector
Instantiates a new simple vector.- Parameters:
 magnitude- the magnitudedirection- the direction
 
 - 
 - 
Method Details
- 
toString
To string. - 
getMagnitude
public double getMagnitude()Gets the magnitude.- Returns:
 - the magnitude
 
 - 
setMagnitude
public void setMagnitude(double magnitude) Sets the magnitude.- Parameters:
 magnitude- the magnitude to set
 - 
getDirection
Gets the direction.- Returns:
 - the direction
 
 - 
setDirection
Sets the direction.- Parameters:
 direction- the direction to set
 
 -