Example #1
0
 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)));
 }
Example #2
0
 public static Size RoundSize(Size value)
 {
     return(new Size(RoundingHelper.RoundLength(value.Width), RoundingHelper.RoundLength(value.Height)));
 }
Example #3
0
 public static Point3D RoundPosition(Point3D value)
 {
     return(new Point3D(RoundingHelper.RoundLength(value.X), RoundingHelper.RoundLength(value.Y), RoundingHelper.RoundLength(value.Z)));
 }
Example #4
0
 public static Vector3D RoundDirection(Vector3D value)
 {
     return(new Vector3D(RoundingHelper.RoundLength(value.X), RoundingHelper.RoundLength(value.Y), RoundingHelper.RoundLength(value.Z)));
 }