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() |
double |
getLength()
The length of the vector
|
IVector<T> |
getNormalVec() |
IPoint<T> |
translate(IPoint<T> p) |
getDimensions, getEndPoint, getI, getJ, 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> getNormalVec()
getNormalVec in interface IExactVector<T extends java.lang.Number>getNormalVec in interface IPoint<T extends java.lang.Number>public IPoint<T> getBasePoint()
getBasePoint in interface IExactVector<T extends java.lang.Number>