Add constructor without arguments to RayTracing for convenience.

This commit is contained in:
asofold 2013-02-17 13:56:13 +01:00
parent 45ba3b931e
commit 3dbe5fcda8
2 changed files with 4 additions and 9 deletions

View File

@ -6,19 +6,10 @@ public class PassableRayTracing extends RayTracing{
protected boolean collides = false;
/**
* Empty constructor for setting other properties later.
*/
public PassableRayTracing() {
super(0, 0, 0, 0, 0, 0);
}
public BlockCache getBlockCache() {
return blockCache;
}
public void setBlockCache(BlockCache blockCache) {
this.blockCache = blockCache;
}

View File

@ -34,6 +34,10 @@ public abstract class RayTracing {
set(x0, y0, z0, x1, y1, z1);
}
public RayTracing(){
set(0, 0, 0, 0, 0, 0);
}
public void set(double x0, double y0, double z0, double x1, double y1, double z1){
// // TODO: Consider not using end-points at all.
// this.x0 = x0;