Table of Contents
This interface defines common properties of figures
Operations:
visibility
return
name
visibility
return
name
Table 1.
| Class | Point | |
|---|---|---|
|
A point is a geometric object that has no dimension and defined by its position. In this computer model, it has the size of a pixel. | ||
| Attributes: | ||
| visibility | type | name |
| private | x | |
| private | y | |
|
Operations: | ||
|
visibility |
return |
name |
| public | translate | |
Table 2.
| Class | Ellipse | |
|---|---|---|
|
An ellipse is a closed curve determined by the intersection of a non-curved cone and a plan which is not perpendiculary to its axis | ||
| Attributes: | ||
| visibility | type | name |
| private | Point | focus1 |
| private | Point | focus2 |
|
Operations: | ||
|
visibility |
return |
name |
| public | perimeter | |
| public | rotate | |
| public | translate | |
| public | display | |
Table 3.
| Class | Circle | |
|---|---|---|
|
A circle is an ellipse where the plane is perpendicular to the axis. | ||
|
Operations: | ||
|
visibility |
return |
name |
| public | perimeter | |
Table 4.
| Class | Color | |
|---|---|---|
|
An color defined by its Red Green, Blue and Alpha channels | ||
| Attributes: | ||
| visibility | type | name |
| private | red | |
| private | green | |
| private | blue | |
| private | alpha | |
Table 5.
| Class | ClosedFigure | |
|---|---|---|
|
A closed figure is a figure where the last point is linked to the first one | ||
Table 6.
| Class | Polygon | |
|---|---|---|
|
Operations: | ||
|
visibility |
return |
name |
| public | perimeter | |
| public | rotate | |
| public | translate | |
| public | display | |