Method CompareWithGeometry
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CompareWithGeometry(IGeometry, in Matrix3x2Float?, float?)
Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.
GeometryRelation CompareWithGeometry(IGeometry inputGeometry, in Matrix3x2Float? inputGeometryTransform = null, float? flatteningTolerance = null)
Parameters
inputGeometry
IGeometryThe geometry to test.
inputGeometryTransform
Matrix3x2Float?The transform to apply to inputGeometry, or null for no transform.
flatteningTolerance
float?The maximum error allowed when constructing a polygonal approximation of the geometry, or null to use FlatteningTolerance.Default. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.
Returns
- GeometryRelation
A value describing how this geometry is related to inputGeometry.
Remarks
When interpreting the returned relation value, it is important to remember that a result of GeometryRelation.IsContained means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry.