Ejemplo n.º 1
0
        public Box(Point3 corner, Vector3 width, Vector3 height, Vector3 depth)
        {
            _corner1       = corner;
            _corner2       = new Point3(corner + width + height + depth);
            _width         = width;
            _width_normal  = width.Normalize();
            _height        = height;
            _height_normal = _height.Normalize();
            _depth         = depth;
            _depth_normal  = _depth.Normalize();
            _l1            = (new Vector3(_corner1)).Length;
            _l2            = (new Vector3(_corner2)).Length;

            float v  = _corner1.Dot(_height_normal);
            float f2 = _corner1.Dot(_depth_normal);
            float f3 = _corner2.Dot(_width_normal);
        }