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); }
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)); }