예제 #1
0
 public static Matrix4D GetBoundsToScreenTransform(
     Bounds2D bounds,
     int width,
     int height)
 {
     return(Transformation4D.GetBoundsToScreenTransform(bounds, width, height, 0));
 }
예제 #2
0
 public static Matrix4D GetBoundsToScreenTransform(
     Point2D min,
     Point2D max,
     int width,
     int height)
 {
     return(Transformation4D.GetBoundsToScreenTransform(min, max, width, height, 0));
 }
예제 #3
0
 public static Matrix4D GetBoundsToScreenTransform(
     Point2D min,
     Point2D max,
     int width,
     int height,
     int margin)
 {
     return(Transformation4D.GetBoundsToScreenTransform(min.X, min.Y, max.X, max.Y, width, height, margin));
 }
예제 #4
0
 public static Matrix4D GetBoundsToScreenTransform(
     double minX,
     double minY,
     double maxX,
     double maxY,
     int width,
     int height)
 {
     return(Transformation4D.GetBoundsToScreenTransform(minX, minY, maxX, maxY, width, height, 0));
 }
예제 #5
0
 public static Matrix4D GetBoundsToScreenTransform(
     Bounds2D bounds,
     int width,
     int height,
     int margin)
 {
     if (!bounds.Initialized)
     {
         return(Matrix4D.Identity);
     }
     return(Transformation4D.GetBoundsToScreenTransform(bounds.Min, bounds.Max, width, height, margin));
 }