public class Vector extends Object implements Serializable
Constructor and Description |
---|
Vector(double x,
double y)
Creates a new instance of
Vector . |
Modifier and Type | Method and Description |
---|---|
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.
|
public Vector(double x, double y)
Vector
.x
- the x-component.y
- the y-component.public double getX()
public double getY()
public double getLength()
public double getAngle()
public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics