Where to add is_finite() api?
As for me ShapeResource<P> looks like a best candidate.
The only problem I see is that it only works with contours, and if for some reason we need detailed information, it is not very suitable to much.
the api can look like fn validate_coordinates(&self) -> Result<(), InvalidGeometry> could reject NaN, +inf, and -inf and return the failing path/point index.
Where to add
is_finite()api?As for me
ShapeResource<P>looks like a best candidate.The only problem I see is that it only works with contours, and if for some reason we need detailed information, it is not very suitable to much.
the api can look like
fn validate_coordinates(&self) -> Result<(), InvalidGeometry>could rejectNaN,+inf, and-infand return the failing path/point index.