Esempio n. 1
0
 /// <summary>
 /// Checks whether this point touches a <see cref="BoundingBox"/>
 /// </summary>
 /// <param name="box">box</param>
 /// <returns>true if they touch</returns>
 public bool Touches(BoundingBox box)
 {
     return(box.Touches(this));
 }
Esempio n. 2
0
 /// <summary>
 /// Checks whether this point intersects a <see cref="BoundingBox"/>
 /// </summary>
 /// <param name="box">Box</param>
 /// <returns>True if they intersect</returns>
 public bool Intersects(BoundingBox box)
 {
     return(box.Contains(this));
 }
Esempio n. 3
0
 /// <summary>
 /// Returns the distance between this geometry instance and another geometry, as
 /// measured in the spatial reference system of this instance.
 /// </summary>
 /// <param name="geom"></param>
 /// <returns></returns>
 //public override double Distance(GeoAPI.Geometries.IGeometry geom)
 //{
 //    if (geom.GetType() == typeof(GisSharpBlog.NetTopologySuite.Geometries.Point))
 //	{
 //		Point p = geom as Point;
 //		return Math.Sqrt(Math.Pow(this.X - p.X, 2) + Math.Pow(this.Y - p.Y, 2));
 //	}
 //	else
 //		throw new NotImplementedException("The method or operation is not implemented for this geometry type.");
 //}
 /// <summary>
 /// Returns the distance between this point and a <see cref="BoundingBox"/>
 /// </summary>
 /// <param name="box"></param>
 /// <returns></returns>
 public double Distance(BoundingBox box)
 {
     return(box.Distance(this));
 }