Package org.jfree.data.xy
Class Vector
java.lang.Object
org.jfree.data.xy.Vector
- All Implemented Interfaces:
Serializable
A vector.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this vector for equality with an arbitrary object.double
getAngle()
Returns the angle of the vector.double
Returns the length of the vector.double
getX()
Returns the x-value.double
getY()
Returns the y-value.int
hashCode()
Returns a hash code for this instance.
-
Constructor Details
-
Vector
Creates a new instance ofVector
.- Parameters:
x
- the x-component.y
- the y-component.
-
-
Method Details
-
getX
Returns the x-value.- Returns:
- The x-value.
-
getY
Returns the y-value.- Returns:
- The y-value.
-
getLength
Returns the length of the vector.- Returns:
- The vector length.
-
getAngle
Returns the angle of the vector.- Returns:
- The angle of the vector.
-
equals
Tests this vector for equality with an arbitrary object. -
hashCode
Returns a hash code for this instance.
-