A three-dimensional box that uses Length elements.
Пример #1
0
 /// <summary>Create a <see cref="Box3"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative(  Length minX ,  Length minY ,  Length minZ ,   Length sizeX ,  Length sizeY ,  Length sizeZ  , out Box3 result)
 {
     result.Min.X = minX;
                 result.Max.X = minX + sizeX;
                                     result.Min.Y = minY;
                 result.Max.Y = minY + sizeY;
                                     result.Min.Z = minZ;
                 result.Max.Z = minZ + sizeZ;
                                 return;
 }
Пример #2
0
 /// <summary>Create a <see cref="Box3"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative( ref Vector3 min ,  ref Vector3 size  , out Box3 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;
                                     result.Min.Z = min.Z;
                 result.Max.Z = min.Z + size.Z;
                                 return;
 }