mathnet / mathnet-spatial

Math.NET Spatial
http://spatial.mathdotnet.com
MIT License
376 stars 132 forks source link

Best plane fit from points #216

Closed f-frhs closed 1 year ago

f-frhs commented 1 year ago

I added Plane.CreateFittedPlaneFrom(points) method with some unit tests for it.

I would like to discuss the following topic:

jkalias commented 1 year ago
  * [ ]  which is nice to evaluate?
    a. (z)axis-aligned distance
    b. orthogonal distance

I think your implementation is correct, we should evaluate the best fit based on the orthogonal euclidean distance.

jkalias commented 1 year ago

Fixed accuracy test in #218