|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--IsoscelesTriangle
A class that manages an Isosceles triangle (a triangle with 2 equal sides) given the base (the non-equal side) and the height.
| Constructor Summary | |
IsoscelesTriangle(double base,
double height)
Create a new Isosceles triangle object given the base and height of the triangle. |
|
| Method Summary | |
double |
getArea()
Return the area of the triangle. |
double |
getBase()
Return the base of the triangle. |
double |
getHeight()
Return the height of the triangle. |
double |
getPerimeter()
Return the perimeter of the triangle. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public IsoscelesTriangle(double base,
double height)
double - base of the triangle (non-equal side).
Must be greater than 0.double - height of the triangle. Must be greater than 0.| Method Detail |
public double getBase()
public double getHeight()
public double getPerimeter()
public double getArea()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||