Class ConvexHull
Factory class for computing convex hulls.
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public static class ConvexHull
Methods
| Edit this page View SourceCreate(IList<double[]>, double)
Creates a convex hull of the input data.
Declaration
public static ConvexHull<DefaultVertex, DefaultConvexFace<DefaultVertex>> Create(IList<double[]> data, double PlaneDistanceTolerance = 1E-10)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<double[]> | data | The data. |
| double | PlaneDistanceTolerance | The plane distance tolerance. |
Returns
| Type | Description |
|---|---|
| ConvexHull<DefaultVertex, DefaultConvexFace<DefaultVertex>> | ConvexHull<DefaultVertex, DefaultConvexFace<DefaultVertex>>. |
Create<TVertex>(IList<TVertex>, double)
Creates a convex hull of the input data.
Declaration
public static ConvexHull<TVertex, DefaultConvexFace<TVertex>> Create<TVertex>(IList<TVertex> data, double PlaneDistanceTolerance = 1E-10) where TVertex : IVertex
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TVertex> | data | The data. |
| double | PlaneDistanceTolerance | The plane distance tolerance. |
Returns
| Type | Description |
|---|---|
| ConvexHull<TVertex, DefaultConvexFace<TVertex>> | ConvexHull<TVertex, DefaultConvexFace<TVertex>>. |
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
Create<TVertex, TFace>(IList<TVertex>, double)
Creates a convex hull of the input data.
Declaration
public static ConvexHull<TVertex, TFace> Create<TVertex, TFace>(IList<TVertex> data, double PlaneDistanceTolerance = 1E-10) where TVertex : IVertex where TFace : ConvexFace<TVertex, TFace>, new()
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TVertex> | data | The data. |
| double | PlaneDistanceTolerance | The plane distance tolerance. |
Returns
| Type | Description |
|---|---|
| ConvexHull<TVertex, TFace> | ConvexHull<TVertex, TFace>. |
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
| TFace | The type of the t face. |