public Diamond(double x, double y, double width, double height, Brush fillColor, Brush strokeColor, double strokeThickness) { pos = new Cords2(x, y); this.ShapeHeight = height; this.ShapeWidth = width; this.Fill = fillColor; this.Stroke = strokeColor; this.StrokeThickness = strokeThickness; }
public Triangle(double x, double y, double width, double height, Brush fillColor, Brush strokeColor, double strokeThickness, bool isRight) { pos = new Cords2(x, y); this.ShapeHeight = height; this.ShapeWidth = width; this.Fill = fillColor; this.Stroke = strokeColor; this.StrokeThickness = strokeThickness; this.isRightTriangle = isRight; }