public double getPerimeter(ShapeF s) { var width = s.getWidth(); return(3 * width); }
public double getArea(ShapeF s) { var width = s.getWidth(); return((Math.Sqrt(3) / 4) * width * width); }
public double getArea(ShapeF s) { return(Math.PI * (s.getWidth() / 2) * (s.getWidth() / 2)); }
public double getPerimeter(ShapeF s) { return(Math.PI * s.getWidth()); }
public double getArea(ShapeF s) { var w = s.getWidth(); return(w * w); }