A four-dimensional box that uses Single elements.
Beispiel #1
0
 /// <summary>Create a <see cref="Box4f"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative(  Single minX ,  Single minY ,  Single minZ ,  Single minW ,   Single sizeX ,  Single sizeY ,  Single sizeZ ,  Single sizeW  , out Box4f 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;
                                     result.Min.W = minW;
                 result.Max.W = minW + sizeW;
                                 return;
 }
Beispiel #2
0
 /// <summary>Create a <see cref="Box4f"/> by providing the minimum extent and the size of each side.</summary>
 public static void Relative( ref Vector4f min ,  ref Vector4f size  , out Box4f 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;
                                     result.Min.W = min.W;
                 result.Max.W = min.W + size.W;
                                 return;
 }