public abstract class AbstractTriangle extends java.lang.Object implements Collidable
Constructor and Description |
---|
AbstractTriangle() |
Modifier and Type | Method and Description |
---|---|
int |
collideWith(Collidable other,
CollisionResults results)
Generate collision results for this triangle with another Collidable.
|
abstract Vector3f |
get1()
Determine the location of the first vertex.
|
abstract Vector3f |
get2()
Determine the location of the 2nd vertex.
|
abstract Vector3f |
get3()
Determine the location of the 3rd vertex.
|
abstract void |
set(Vector3f v1,
Vector3f v2,
Vector3f v3)
Alter all 3 vertex locations.
|
public abstract Vector3f get1()
public abstract Vector3f get2()
public abstract Vector3f get3()
public abstract void set(Vector3f v1, Vector3f v2, Vector3f v3)
v1
- the location for the first vertexv2
- the location for the 2nd vertexv3
- the location for the 3rd vertexpublic int collideWith(Collidable other, CollisionResults results)
collideWith
in interface Collidable
other
- the other Collidableresults
- storage for collision results