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