ShapeSimilarity.Calculate (Poly2d, Poly2d, out Double) Method

Calculates the similarity between two polys. 0=perfect This function is scale independant so the polys can have different size. It only compare the shape of the polys. Rot is how much the first poly pf should be rotated to obtain the match.
public static double Calculate( 
   Poly2d pf
   Poly2d pg
   out double rot 
)

Parameters

pf
Poly2d

First poly

pg
Poly2d

Second poly

rot
double

The angle to rotate the first poly in radians for the best match

Return Value

double

A metric of how similar the polys are 0=perfect match.

.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