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
 
Method Summary
 Vertex add(float x, float z)
           
 Vertex add(Vertex pos)
           
 int compareTo(java.lang.Object o)
           
 float getX()
           
 float getZ()
           
 Vertex multiply(float zoom)
           
 Vertex multiply(float x, float z)
           
 Vertex multiply(Vertex pos)
           
 Vertex project(float xFovCalc)
           
 Vertex remove(float x, float z)
           
 Vertex remove(Vertex pos)
           
 Vertex rotate(float deg)
           
 void setAll(float x, float z)
           
 void setAll(Vertex pos)
           
 void setX(float x)
           
 void setZ(float z)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vertex

public Vertex(float x,
              float z)
create a new vertex at point x,z

Method Detail

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