A two-dimensional box that uses Double elements.
Esempio n. 1
0
 /// <summary>Create a <see cref="Box2d"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative(  Double minX ,  Double minY ,   Double sizeX ,  Double sizeY  , out Box2d result)
 {
     result.Min.X = minX;
                 result.Max.X = minX + sizeX;
                                     result.Min.Y = minY;
                 result.Max.Y = minY + sizeY;
                                 return;
 }
Esempio n. 2
0
 /// <summary>Create a <see cref="Box2d"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative( ref Vector2d min ,  ref Vector2d size  , out Box2d result)
 {
     result.Min.X = min.X;
                 result.Max.X = min.X + size.X;
                                     result.Min.Y = min.Y;
                 result.Max.Y = min.Y + size.Y;
                                 return;
 }