dellisd / spatial-k

Spatial K - A set of Kotlin Multiplatform Libraries for working with geospatial data
https://dellisd.github.io/spatial-k
MIT License
67 stars 12 forks source link

Use value classes for Positions and BoundingBoxes #91

Open dellisd opened 2 years ago

dellisd commented 2 years ago

As "primitive" types, Position and BoundingBox would be better represented as value classes that wrap their underlying DoubleArray.

This change is currently blocked by the inability to override the equals() method on value classes which is required in order to implement proper equality checks that compare the DoubleArrays.