Exemple #1
0
        public static AxisAlignedBox CreateFromCylinderXY(CylinderXY cylinder)
        {
            Vector3F       vector1 = new Vector3F(cylinder.Radius, cylinder.Radius, cylinder.Radius);
            AxisAlignedBox box     = new AxisAlignedBox(new Vector3F(cylinder.Center) - vector1, new Vector3F(cylinder.Center) + vector1);

            box.Max.Z = cylinder.MaxZ;
            box.Min.Z = cylinder.MinZ;
            return(box);
        }
Exemple #2
0
 public static void CreateFromCylinderXY(ref CylinderXY cylinder, out AxisAlignedBox result)
 {
     result = AxisAlignedBox.CreateFromCylinderXY(cylinder);
 }