public static class GM01.Vector2D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) GM01.ColMatrix2D |
vector |
Constructor and Description |
---|
GM01.Vector2D(GM01.ColMatrix2D vector) |
Modifier and Type | Method and Description |
---|---|
GM01.Vector2D |
add(GM01.Vector2D vec) |
void |
draw(java.awt.Graphics2D g2D,
GM01.Point2D tail) |
boolean |
equals(java.lang.Object obj) |
GM01.ColMatrix2D |
getColMatrix() |
double |
getData(int index) |
double |
getLength() |
GM01.Vector2D |
negate() |
GM01.Vector2D |
normalize() |
GM01.Vector2D |
scale(java.lang.Double factor) |
void |
setData(int index,
double data) |
java.lang.String |
toString() |
GM01.ColMatrix2D vector
public GM01.Vector2D(GM01.ColMatrix2D vector)
public java.lang.String toString()
toString
in class java.lang.Object
public double getData(int index)
public void setData(int index, double data)
public void draw(java.awt.Graphics2D g2D, GM01.Point2D tail)
public GM01.ColMatrix2D getColMatrix()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public GM01.Vector2D add(GM01.Vector2D vec)
public double getLength()
public GM01.Vector2D scale(java.lang.Double factor)
public GM01.Vector2D negate()
public GM01.Vector2D normalize()