public static Rect RoundRect(Rect value) { if (value.IsEmpty) { return(value); } return(new Rect(RoundingHelper.RoundLength(value.X), RoundingHelper.RoundLength(value.Y), RoundingHelper.RoundLength(value.Width), RoundingHelper.RoundLength(value.Height))); }
public static Size RoundSize(Size value) { return(new Size(RoundingHelper.RoundLength(value.Width), RoundingHelper.RoundLength(value.Height))); }
public static Point3D RoundPosition(Point3D value) { return(new Point3D(RoundingHelper.RoundLength(value.X), RoundingHelper.RoundLength(value.Y), RoundingHelper.RoundLength(value.Z))); }
public static Vector3D RoundDirection(Vector3D value) { return(new Vector3D(RoundingHelper.RoundLength(value.X), RoundingHelper.RoundLength(value.Y), RoundingHelper.RoundLength(value.Z))); }