コード例 #1
0
        public static MyOrientedBoundingBoxD Create(BoundingBoxD boundingBox, MatrixD matrix)
        {
            MyOrientedBoundingBoxD bb = new MyOrientedBoundingBoxD(boundingBox.Center, boundingBox.HalfExtents, Quaternion.Identity);

            bb.Transform(matrix);
            return(bb);
        }
コード例 #2
0
        public static MyOrientedBoundingBoxD Create(BoundingBoxD boundingBox, MatrixD matrix)
        {
            BoundingBoxD           centeredBox = new BoundingBoxD(-boundingBox.Size / 2, boundingBox.Size / 2);
            MyOrientedBoundingBoxD bb          = MyOrientedBoundingBoxD.CreateFromBoundingBox(centeredBox);

            bb.Transform(matrix);
            return(bb);
        }