public class ExactVector2<T extends java.lang.Number> extends Vector2<T> implements IExactVector<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
i2
Coords of starting point
|
protected T |
j2
Coords of starting point
|
| Constructor and Description |
|---|
ExactVector2(Point2<T> start,
Point2<T> end) |
| Modifier and Type | Method and Description |
|---|---|
IPoint<T> |
getBasePoint() |
IVector<T> |
getBaseVec() |
double |
getLength()
The length of the vector
|
IPoint<T> |
translate(IPoint<T> p) |
getDimensions, getEndPoint, getX, getYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDimensions, getEndPoint, getXgetDimensions, getXprotected T extends java.lang.Number i2
protected T extends java.lang.Number j2
public IVector<T> getBaseVec()
getBaseVec in interface IExactVector<T extends java.lang.Number>getBaseVec in interface IPoint<T extends java.lang.Number>public IPoint<T> getBasePoint()
getBasePoint in interface IExactVector<T extends java.lang.Number>