Exemplo n.º 1
0
        public virtual bool GetContentWorldBounds(ref Bounds2 bounds)
        {
            Bounds2 bounds2 = default(Bounds2);
            bool    result;

            if (!this.GetlContentLocalBounds(ref bounds2))
            {
                result = false;
            }
            else
            {
                Matrix3 worldTransform = this.GetWorldTransform();
                bounds = new Bounds2((worldTransform * bounds2.Point00.Xy1).Xy);
                bounds.Add((worldTransform * bounds2.Point10.Xy1).Xy);
                bounds.Add((worldTransform * bounds2.Point01.Xy1).Xy);
                bounds.Add((worldTransform * bounds2.Point11.Xy1).Xy);
                result = true;
            }
            return(result);
        }