Class OrthogonalPlaneFit
Finds the best-fitting plane for a set of 3D points using Principal Component Analysis (PCA). The plane is defined by an origin point and a normal vector.
Namespace: NWH.Aerodynamics.Airfoils
Assembly: NWH.Aerodynamics.dll
Syntax
public class OrthogonalPlaneFit
Constructors
| Edit this page View SourceOrthogonalPlaneFit(IEnumerable<Vector3>)
Computes the best-fitting plane for the given set of points using eigenvector analysis. The plane minimizes the sum of squared distances from all points to the plane.
Declaration
public OrthogonalPlaneFit(IEnumerable<Vector3> points)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Vector3> | points | Collection of 3D points to fit the plane to. |
Fields
| Edit this page View SourceNormal
Normal vector of the fitted plane.
Declaration
public Vector3 Normal
Field Value
| Type | Description |
|---|---|
| Vector3 |
Origin
Origin point (centroid) of the fitted plane.
Declaration
public Vector3 Origin
Field Value
| Type | Description |
|---|---|
| Vector3 |
ResultValid
Indicates whether the fit converged successfully.
Declaration
public bool ResultValid
Field Value
| Type | Description |
|---|---|
| bool |