Poly2d.Split (Double, out Poly2d, out Poly2d) Method

Splits this poly at a given parameter. If this poly is closed, a single result with a poly open at that point is computed, otherwise two result polygons is computed.
public int Split( 
   double param
   out Poly2d res1
   out Poly2d res2 
)

Parameters

param
double

The parameter to split at in the range 0-1.

res1
Poly2d

The sub-polygon from parameter 0.0 to the given parmeter.

res2
Poly2d

The sub polygon from the given parameter to parameter 1.0 or null if a closed polygon was splitted.

Return Value

int

The number of polygons computed (1 or 2).

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition