Package org.jzy3d.maths
Class Vector2d
java.lang.Object
org.jzy3d.maths.Vector2d
Storage for a 2 dimensional vector defined by two points. Provide the vector function that
 returns the vector as a Coord3d, as well as dot product and norm.
- Author:
- Martin Pernollet
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Vector2dpublic Vector2d(float x1, float y1, float x2, float y2) Create a vector, described by two points.
- 
Vector2dCreate a vector, described by two coordinates.
 
- 
- 
Method Details- 
vectorReturn the vector induced by this set of coordinates.
- 
dotCompute the dot product between and current and given vector.- Parameters:
- v- input vector
- Returns:
- the dot product
 
- 
normpublic float norm()Compute the norm of this vector.- Returns:
- the norm
 
 
-