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 Shared Function Calculate( _ 
ByVal pf As Poly2d, _ 
ByVal pg As Poly2d, _ 
ByRef rot As Double
) As Double
This language is not supported or no code example is available.
public static double Calculate( 
Poly2d pf
Poly2d pg
out double rot 
)
This language is not supported or no code example is available.
public:  
static double Calculate( 
Poly2d^ pf
Poly2d^ pg
double& rot 
)
This language is not supported or no code example is available.
public static function Calculate( 
pf : Poly2d
pg : Poly2d
rot : double 
) : double;
This language is not supported or no code example is available.

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