com.robrohan.ruin.math3d
Class Vertex
java.lang.Object
|
+--com.robrohan.ruin.math3d.Vertex
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- Direct Known Subclasses:
- LineEdge
- public class Vertex
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
These are the beginning and end points for LINEDEFS and SEGS
- See Also:
- Serialized Form
Constructor Summary |
Vertex(float x,
float z)
create a new vertex at point x,z |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Vertex
public Vertex(float x,
float z)
- create a new vertex at point x,z
project
public Vertex project(float xFovCalc)
add
public Vertex add(float x,
float z)
add
public Vertex add(Vertex pos)
remove
public Vertex remove(float x,
float z)
remove
public Vertex remove(Vertex pos)
multiply
public Vertex multiply(float zoom)
multiply
public Vertex multiply(float x,
float z)
multiply
public Vertex multiply(Vertex pos)
rotate
public Vertex rotate(float deg)
getX
public float getX()
getZ
public float getZ()
setX
public void setX(float x)
setZ
public void setZ(float z)
setAll
public void setAll(float x,
float z)
setAll
public void setAll(Vertex pos)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable