示例#1
0
        public static IExplicitShape <GridPoint3> Translate(this IExplicitShape <GridPoint3> shape, GridPoint3 n)
        {
            var newBounds = GridBounds.Translate(shape.Bounds, n);
            var newShape  = ImplicitShape.Translate(shape, n).ToExplicit(newBounds);

            return(newShape);
        }
示例#2
0
            public ExplicitShape3 Translate(GridPoint3 offset)
            {
                var map = Map.Translate(offset);

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

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