Пример #1
0
        internal static BoundsBox TransformAABBFast(BoundsBox bounds, Matrix matrix)
        {
            Vector3 newCenter = Vector3.TransformCoordinate(bounds.Center, matrix);
            Vector3 newExtent = Vector3.TransformNormal(bounds.Extent, AbsMatrix(matrix));

            return(new BoundsBox(newCenter - newExtent, newCenter + newExtent));
        }
Пример #2
0
 internal MeshInfo(string name, BoundsBox bounds)
 {
     Name   = name;
     Bounds = bounds;
 }