Converting the quadTree to use the LodDataPoint class

This commit is contained in:
Leonardo
2021-07-13 00:52:24 +02:00
parent 7854f659a3
commit e8b46a6fd2
3 changed files with 143 additions and 135 deletions
@@ -1,6 +1,7 @@
package com.seibel.lod.objects;
import java.awt.Color;
import java.util.Objects;
import com.seibel.lod.handlers.LodDimensionFileHandler;
@@ -55,8 +56,17 @@ public class LodDataPoint
depth = (short) newDepth;
color = newColor;
}
public int hashCode(){
return Objects.hash(this.height, this.depth, this.color);
}
public boolean equals(LodDataPoint other){
return (this.height == other.height
&& this.depth == other.depth
&& this.color == other.color);
}
/**
* Outputs all data in a csv format
* with the given delimiter.