
import java.awt.*;

/** A rhombus with horizontal length l1 (and other length l1)
    whose top line starts d units to the right of */
public class Rhombus extends Parallelogram {

    /** Constructor: a parallelogram at (xp, yp) of side lengths
           l1 (horizontal side), dp pixels from (xp, yp) */
    public Rhombus(int xp, int yp, int lp1, int dp) {
       super(xp, yp, lp1, lp1, dp);
    }
        
    /** = description of this parallelogram */
    public String toString() {
      return "rhombus, pt (" + x + ", " + y + "), sides " +
             l1 + ", distance " + d + " from " + x;
    }

}
