コード例 #1
0
 public Box3f FromFrame(Box3f box)
 {
     box.Center = FromFrameP(box.Center);
     box.AxisX  = FromFrameV(box.AxisX);
     box.AxisY  = FromFrameV(box.AxisY);
     box.AxisZ  = FromFrameV(box.AxisZ);
     return(box);
 }
コード例 #2
0
 // I think this can be more efficient...no? At least could combine
 // all the axis-interval updates before updating Center...
 public void Contain(Box3f o)
 {
     Vector3F[] v = o.ComputeVertices();
     for (int k = 0; k < 8; ++k)
     {
         Contain(v[k]);
     }
 }
コード例 #3
0
 public Box3f ToFrame(Box3f box)
 {
     box.Center = ToFrameP(box.Center);
     box.AxisX  = ToFrameV(box.AxisX);
     box.AxisY  = ToFrameV(box.AxisY);
     box.AxisZ  = ToFrameV(box.AxisZ);
     return(box);
 }