public class Vector
extends java.lang.Object
| Constructor and Description |
|---|
Vector(double x,
double y) |
Vector(double magnitude,
double direction,
boolean flag) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
add(Vector v) |
double |
getDotProduct(Vector v) |
double |
getXComponent() |
double |
getYComponent() |
Vector |
negate() |
Vector |
normalize() |
Vector |
scalarMultiply(double c) |
public Vector(double x,
double y)
public Vector(double magnitude,
double direction,
boolean flag)