コード例 #1
0
 /// <summary>
 ///     Determines whether the path contains the specified point.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <param name="transform"></param>
 /// <returns><see langword="true" /> if the point is within this path; otherwise <see langword="false" />.</returns>
 public bool ContainsPoint(Vector2 point, Matrix3x2 transform)
 => PathGeometry.FillContainsPoint(
     point.ToRawVector2(),
     transform.ToRawMatrix3x2(),
     PathGeometry.FlatteningTolerance);
コード例 #2
0
 /// <summary>
 /// Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance</summary>
 /// <param name="point">Specified point</param>
 /// <returns>True iff area filled by the geometry contains point</returns>
 public bool FillContainsPoint(PointF point)
 {
     return(m_geometry.FillContainsPoint(point.ToSharpDX()));
 }
コード例 #3
0
 public bool Contains(double x, double y)
 {
     return(Geometry.FillContainsPoint(Import.Point(x, y)));
 }