/// <summary> /// Rounds the rectangle's value to the closest less than or equal to whole numbers. /// </summary> public static RadRect Floor(RadRect rect) { return(new RadRect((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); }
internal virtual RadRect ArrangeOverride(RadRect rect) { return(rect); }
/// <summary> /// Rounds the rectangle's values to the closed whole number. /// </summary> public static RadRect Round(RadRect rect) { return(new RadRect((int)(rect.X + .5d), (int)(rect.Y + .5d), (int)(rect.Width + .5d), (int)(rect.Height + .5d))); }
public static Rect ToRect(this RadRect rect) { return(new Rect(rect.X, rect.Y, rect.Width, rect.Height)); }