org.jfree.data.xy
public class Vector extends Object implements Serializable
Since: 1.0.6
Constructor Summary | |
---|---|
Vector(double x, double y)
Creates a new instance of Vector .
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests this vector for equality with an arbitrary object.
|
double | getAngle()
Returns the angle of the vector.
|
double | getLength()
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.
|
Vector
.
Parameters: x the x-component. y the y-component.
Parameters: obj the object (null
not permitted).
Returns: A boolean.
Returns: The angle of the vector.
Returns: The vector length.
Returns: The x-value.
Returns: The y-value.
Returns: A hash code.