You are here: Start » AVL.NET » AVS.FitPlaneToPoints Method

AVS.FitPlaneToPoints Method

Approximates points with a plane using the Least Squares method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitPlaneToPoints
(
	IList<AvlNet.Point3D> inPoints,
	out AvlNet.Plane3D outPlane,
	NullableRef<List<float>> outDistances,
	NullableValue<float> outSignedDistanceSum,
	NullableValue<float> outDistanceSum,
	NullableRef<List<float>> outSquaredDistances,
	NullableValue<float> outSquaredDistanceSum
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point3D>
outPlaneAvlNet.Plane3DFitted plane.
outDistancesAvlNet.NullableRef<System.Collections.Generic.List<float>>Distances of the input points to a resulting plane. Can be null to skip this parameter calculation.
outSignedDistanceSumAvlNet.NullableValue<float>Sum of signed distances of the input points to a resulting plane. Can be null to skip this parameter calculation.
outDistanceSumAvlNet.NullableValue<float>Sum of distances of the input points to a resulting plane. Can be null to skip this parameter calculation.
outSquaredDistancesAvlNet.NullableRef<System.Collections.Generic.List<float>>Squared distances of the input points to a resulting plane. Can be null to skip this parameter calculation.
outSquaredDistanceSumAvlNet.NullableValue<float>Sum of squared distances of the input points to a resulting plane. Can be null to skip this parameter calculation.

Function Overrides

See also