/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> public override bool IsVisibleIn(View2D view) { if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY)) { return(true); // maybe a better hittest? } return(false); }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// <param name="zoom"></param> public bool IsVisibleIn(View2D view, float zoom) { if (this.MinZoom > zoom || this.MaxZoom < zoom) { // outside of zoom bounds! return(false); } return(view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom)); }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// <param name="zoom"></param> public override bool IsVisibleIn(View2D view, float zoom) { if (this.MinZoom > zoom || this.MaxZoom < zoom) { // outside of zoom bounds! return(false); } if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY)) { return(true); // maybe a better hittest? } return(false); }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// <param name="zoom"></param> public bool IsVisibleIn(View2D view, float zoom) { if (this.MinZoom > zoom || this.MaxZoom < zoom) { // outside of zoom bounds! return false; } if (view.OverlapsWithBox (MinX, MinY, MaxX, MaxY)) { return true; // maybe a better hittest? } return false; }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// <param name="zoom"></param> public override bool IsVisibleIn(View2D view, float zoom) { if (this.MinZoom > zoom || this.MaxZoom < zoom) { // outside of zoom bounds! return false; } return view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom); }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// public override bool IsVisibleIn(View2D view) { return(view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom)); }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> public override bool IsVisibleIn(View2D view) { if (view.OverlapsWithBox(MinX, MinY, MaxX, MaxY)) { return true; // maybe a better hittest? } return false; }
/// <summary> /// Returns true if the object is visible on the view. /// </summary> /// <returns>true</returns> /// <c>false</c> /// <param name="view">View.</param> /// public override bool IsVisibleIn(View2D view) { return view.OverlapsWithBox(this.Left, this.Top, this.Right, this.Bottom); }