org.jfree.data.xy
Class Vector
- Serializable
extends java.lang.Object
implements Serializable
A vector.
Vector(double x, double y) - Creates a new instance of
Vector .
|
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
public Vector(double x,
double y)
Creates a new instance of Vector
.
x
- the x-component.y
- the y-component.
equals
public boolean equals(Object obj)
Tests this vector for equality with an arbitrary object.
obj
- the object (null
not permitted).
getAngle
public double getAngle()
Returns the angle of the vector.
getLength
public double getLength()
Returns the length of the vector.
getX
public double getX()
Returns the x-value.
getY
public double getY()
Returns the y-value.
hashCode
public int hashCode()
Returns a hash code for this instance.