org.osm2world.core.math
Class TriangleXYZ

Object
  extended by TriangleXYZ
Direct Known Subclasses:
TriangleXYZWithNormals

public class TriangleXYZ
extends Object


Field Summary
 VectorXYZ v1
           
 VectorXYZ v2
           
 VectorXYZ v3
           
 
Constructor Summary
TriangleXYZ(VectorXYZ v1, VectorXYZ v2, VectorXYZ v3)
           
 
Method Summary
 VectorXYZ getCenter()
           
 VectorXYZ getNormal()
          returns the normalized normal vector of this triangle
 List<VectorXYZ> getVertices()
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

v1

public final VectorXYZ v1

v2

public final VectorXYZ v2

v3

public final VectorXYZ v3
Constructor Detail

TriangleXYZ

public TriangleXYZ(VectorXYZ v1,
                   VectorXYZ v2,
                   VectorXYZ v3)
Method Detail

getVertices

public List<VectorXYZ> getVertices()

getNormal

public VectorXYZ getNormal()
returns the normalized normal vector of this triangle


getCenter

public VectorXYZ getCenter()

toString

public String toString()
Overrides:
toString in class Object