A two-dimensional box that uses Length elements.
Esempio n. 1
0
 /// <summary>Create a <see cref="Box2"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative(  Length minX ,  Length minY ,   Length sizeX ,  Length sizeY  , out Box2 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="Box2"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative( ref Vector2 min ,  ref Vector2 size  , out Box2 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;
 }