/** issue gl.glVertex() for each of the triangle's points */
public void glVertices(GL gl) {
+ norm().glNormal(gl);
p1().glVertex(gl);
p2().glVertex(gl);
p3().glVertex(gl);
}
+ public void glVertices(GL gl, Matrix m) {
+ m.times(norm()).glNormal(gl);
+ m.times(p1()).glVertex(gl);
+ m.times(p2()).glVertex(gl);
+ m.times(p3()).glVertex(gl);
+ }
/** the triangle's centroid */
public Point centroid() {