equals method
Checks if this CubicPath is equal to other
based on their raw 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;
}