Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / Geometry Class / Compare Method / Compare(Geometry,Single) Method
The geometry to test.
The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution.

In This Topic
    Compare(Geometry,Single) Method
    In This Topic
    Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.
    Syntax
    'Declaration
     
    Public Overloads Function Compare( _
       ByVal inputGeometry As Geometry, _
       ByVal flatteningTolerance As System.Single _
    ) As GeometryRelation
    public GeometryRelation Compare( 
       Geometry inputGeometry,
       System.float flatteningTolerance
    )

    Parameters

    inputGeometry
    The geometry to test.
    flatteningTolerance
    The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution.

    Return Value

    When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter.
    Remarks
    When interpreting the returned relation value, it is important to remember that the member C1.Win.DX.Direct2D.GeometryRelation.IsContained of the D2D1_GEOMETRY_RELATION enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry. For more information about how to interpret other possible return values, see C1.Win.DX.Direct2D.GeometryRelation.
    See Also