equals method
Currently checks only equality of points.
Implementation
bool equals(CubicPath other) {
if (points.length == other.points.length) {
for (int i = 0; i < points.length; i++) {
if (points[i] != other.points[i]) {
return false;
}
}
return true;
}
return false;
}