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