public static Bounds2D GetBounds(IShape2D shape) { Bounds2D bounds = new Bounds2D(); shape.AddToBounds(bounds); return(bounds); }
public CachedBoundsShape2D(IShape2D wrappedShape) { this.ishape2D_0 = wrappedShape; this.bounds2D_0 = new Bounds2D(); wrappedShape.AddToBounds(this.bounds2D_0); if (this.bounds2D_0.Initialized) { return; } this.bounds2D_0 = (Bounds2D)null; }