Exemple #1
0
 /// <summary>
 /// Returns whether the world X, Y values are inside of the polygon.
 /// </summary>
 /// <param name="worldX">The coordinate in world coordinates.</param>
 /// <param name="worldY"></param>
 /// <returns>Whether the argument x,y values are inside of the polygon.</returns>
 public bool IsPointInside(float worldX, float worldY)
 {
     // position has to be updated:
     mLinePrimitive.Position.X = this.GetAbsoluteLeft();
     mLinePrimitive.Position.Y = this.GetAbsoluteTop();
     return(mLinePrimitive.IsPointInside(worldX, worldY));
     // see if point is inside
 }