public ProductShape2(IExplicitShape <GridPoint2> shape1, IImplicitShape <GridPoint2> shape2, GridPoint2 scaleFactor) { var translationShapes = shape1.Points .Select(point => shape2.Translate(point.Mul(scaleFactor))); unionShape = new UnionShape <GridPoint2>(translationShapes); }
public ProductShape1(IExplicitShape <int> shape1, IImplicitShape <int> shape2, int scaleFactor) { var translationShapes = shape1.Points.Select(point => shape2.Translate(point * scaleFactor)); unionShape = new UnionShape <int>(translationShapes); }