|
Section 8.9: Geometric Classes |
|
This section of the required library contains definitions of those
abstractions and classes which define one, two and three dimensional objects.
The requirements for these stem from the cultural need to specify a paper size
and the need to provide angle objects.
Abstract Classes
- $DIMS - this abstraction models the
concept of a one-dimensional geometric figure and its properties.
- $PLANES - this abstraction models the
concept of a two-dimensional geometric figure and its properties.
- $ANGLES - this abstraction models the
concept of a geometric angle, including the requirement for
trigonometric functions.
Immutable Classes
- LENGTH - this class implements the notion
of a one-dimensional line with the given length.
- UNITS - this enumeration class implements
the notion of a unit of linear measure (eg mms, kms).
- ASPECTS - this enumeration class
implements the notion of the aspect of a rectangular plane
figure.
- DIRECTIONS - this enumeration class
implements the notion of directions in a Cartesian Coordinate plane
(eg Up, Down).
- POINT - this class implements the notion of
a position on a plane defined in Cartesian co-ordinates.
- OFFSET - this class implements the offset
from one point to another in the same plane.
- ANGLE - this class implements the notion of
a planar angle including trigonometric operations.
- ANGLED - this class implements the notion
of a planar angle including trigonometric operations with a greater
precision than ANGLE.
- BOX - this class implements the notion of a
rectangular box in a single plane, including box intersection
facilities.
- RECTANGLE - this class implements the notion of a
plane rectangle
Comments
or enquiries should be made to Keith
Hopper.
Page last modified: Friday, 10 March 2000.
|
|