Fastest pixel blitting renderer being created in Java. 3D renderer. For educational purposes and most importantly, FUN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SigRenderer2/src/sig/Triangle.java

20 lines
473 B

package sig;
import javax.vecmath.Vector3f;
public class Triangle {
Vector3f A,B,C;
Triangle(Vector3f A,Vector3f B,Vector3f C) {
this.A=A;
this.B=B;
this.C=C;
}
@Override
protected Object clone(){
return new Triangle((Vector3f)this.A.clone(),(Vector3f)this.B.clone(),(Vector3f)this.C.clone());
}
@Override
public String toString() {
return "Triangle [A=" + A + ", B=" + B + ", C=" + C + "]";
}
}