I'm in the process of replacing usage of math3.geometry with geometry beta1
and I'm stuck at two places.

My project has pretty limited usage of geometry, only Line, Lines, Segment
and Vector2D from org.apache.commons.geometry.euclidian.twod.

1. How should I replace the call to math3...Segment.distance(Vector2D p)?
https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/org/apache/commons/math3/geometry/euclidean/twod/Segment.html#distance(org.apache.commons.math3.geometry.euclidean.twod.Vector2D)

2. I used to create lines with new Line(...) but now I guess one should use
the methods in Lines. But what about "DoublePrecisionContext", how should I
create and use that?
Looking at the latest commits, DoublePrecisionContext is now replaced, but
until beta2 I'm still on DoublePrecisionContext.

Happy for some guidance here.

/Patrik

Reply via email to