
import java.awt.*;

/** A rhombus, which is a type of parallelogram with horizontal length l1 (and other length l1)
  whose top line starts d units to the right of the x-coordinate
  of the leftmost part of the rhombus, unless d < 0,  in which case the 
  bottom line starts d units to the right of the leftmost part of the 
  rhombus.*/
public class Rhombus extends Parallelogram {
    
    /** Constructor: a rhombus at (xp, yp) of side lengths
      lp1, leaning factor dp */
    public Rhombus(int xp, int yp, int lp1, int dp) {
        super(xp, yp, lp1, lp1, dp);
    }
    
    /** = description of this rhombus */
    public String toString() {
        return "rhombus, pt (" + x + ", " + y + "), sides " +
            l1 + ", distance " + d + " from " + x;
    }
    
}
