[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Geometry.Compare

Compare Method

Compare(Geometry)

Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.

Declaration
public GeometryRelation Compare(Geometry inputGeometry)
Parameters
Type Name Description
Geometry inputGeometry

The geometry to test.

Returns
Type Description
GeometryRelation

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.

Compare(Geometry, float)

Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.

Declaration
public GeometryRelation Compare(Geometry inputGeometry, float flatteningTolerance)
Parameters
Type Name Description
Geometry inputGeometry

The geometry to test.

float 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.

Returns
Type Description
GeometryRelation

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.

Compare(Geometry, Matrix3x2?, float)

HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D_MATRIX_3X2_F* inputGeometryTransform,[In] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation)

Declaration
public GeometryRelation Compare(Geometry inputGeometry, Matrix3x2? inputGeometryTransform, float flatteningTolerance)
Parameters
Type Name Description
Geometry inputGeometry
Matrix3x2? inputGeometryTransform
float flatteningTolerance
Returns
Type Description
GeometryRelation