How does the Fit-Line algorithm work?

Hello,

I’m trying to rewrite a grasshopper-script into Unreal-Engine and I’m stuck on the Fit-Line component in Curve > Primitive > Fit Line.

I know how to get a point from a pointcloud, but do you get a line?

Is that line unique? Based on the logic of getting a line, can I also get a plane without too much computational resources?

Any hints and helps appreciated, hope to hear from you!

Google: C# linear regression

1 Like