org.osm2world.core.math
public class TriangleXYZ extends Object
Constructor and Description |
---|
TriangleXYZ(VectorXYZ v1,
VectorXYZ v2,
VectorXYZ v3) |
Modifier and Type | Method and Description |
---|---|
double |
getArea()
returns the area of the triangle
|
VectorXYZ |
getCenter() |
VectorXYZ |
getNormal()
returns the normalized normal vector of this triangle
|
List<VectorXYZ> |
getVertices() |
double |
getYAt(VectorXZ pos)
returns the triangle's y coord value at a
VectorXZ within the
triangle's 2D footprint. |
boolean |
isDegenerate()
checks if the triangle is degenerate.
|
String |
toString() |
public List<VectorXYZ> getVertices()
public VectorXYZ getNormal()
public VectorXYZ getCenter()
public double getYAt(VectorXZ pos)
VectorXZ
within the
triangle's 2D footprint.
It is obtained by linear interpolation within the triangle.public double getArea()
public boolean isDegenerate()
public String toString()
toString
in class Object