Exemplo n.º 1
0
        public static IExplicitShape <GridPoint2> Translate(this IExplicitShape <GridPoint2> shape, GridPoint2 n)
        {
            var newBounds = GridRect.Translate(shape.Bounds, n);
            var newShape  = ImplicitShape.Translate(shape, n).ToExplicit(newBounds);

            return(newShape);
        }
Exemplo n.º 2
0
            public ExplicitShape2 Translate(GridPoint2 offset)
            {
                var map = Map.Translate(offset);

                var newRect  = GridRect.Translate(storageBounds, offset);
                var newShape = ImplicitShape.Transform(implicitShape, map);

                return(new ExplicitShape2(newShape, newRect));
            }