NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    OrthogonalPlaneFit
    Namespace: NWH.Aerodynamics.Airfoils
    Assembly: NWH.Aerodynamics.dll
    Syntax
    public class OrthogonalPlaneFit

    Constructors

    | Edit this page View Source

    OrthogonalPlaneFit(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 Source

    Normal

    Normal vector of the fitted plane.

    Declaration
    public Vector3 Normal
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    Origin

    Origin point (centroid) of the fitted plane.

    Declaration
    public Vector3 Origin
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    ResultValid

    Indicates whether the fit converged successfully.

    Declaration
    public bool ResultValid
    Field Value
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics