public class Vertex
extends java.lang.Object
Constructor and Description |
---|
Vertex() |
Vertex(float x,
float y,
float z) |
Vertex(int i,
int j) |
Vertex(Vertex position) |
Modifier and Type | Method and Description |
---|---|
void |
add(Vertex offSet) |
Vertex |
copyAndAdd(Vertex offSet) |
Vertex |
copyAndMult(float coef) |
Vertex |
copyAndRotateZ(float angle) |
Vertex |
copyAndSub(Vertex v) |
double |
distanceFrom(Vertex to) |
float |
dot(Vertex v) |
float |
getX() |
float |
getY() |
float |
getZ() |
Vertex |
mult(double factor) |
Vertex |
mult(float factor) |
Vertex |
mult(Vertex offSet) |
double |
norm() |
void |
normalize() |
float |
perpDot(Vertex v) |
Vertex |
rotateX(double angle) |
Vertex |
rotateZ(double angle) |
void |
setX(float x) |
void |
setY(float y) |
void |
setZ(float z) |
void |
subFrom(Vertex position) |
java.lang.String |
toString() |
public Vertex()
public Vertex(float x, float y, float z)
public Vertex(int i, int j)
public Vertex(Vertex position)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getZ()
public void setZ(float z)
public double norm()
public void normalize()
public double distanceFrom(Vertex to)
public Vertex rotateZ(double angle)
public Vertex rotateX(double angle)
public Vertex copyAndRotateZ(float angle)
public void add(Vertex offSet)
public Vertex mult(double factor)
public Vertex mult(float factor)
public Vertex copyAndMult(float coef)
public float dot(Vertex v)
public float perpDot(Vertex v)
public void subFrom(Vertex position)
public java.lang.String toString()
toString
in class java.lang.Object