circle.c 1/8
[top][prev][next]
#include "circle.h"
circle.h 2/8
[top][prev][next]
#ifndef __CIRCLE_H__
#define __CIRCLE_H__
#define CIRCLE(OBJ) ((Circle*)OBJ)
#ifndef String
#define String char*
#endif
#include "point.h"
typedef struct _Circle Circle;
struct _Circle {
/** Attributes **/
/*private*/
Point origin;
double radius;
/** Associations **/
/** Operations **/
};
/** Operations **/
#endif
point.c 3/8
[top][prev][next]
#include "point.h"
point.h 4/8
[top][prev][next]
#ifndef __POINT_H__
#define __POINT_H__
#define POINT(OBJ) ((Point*)OBJ)
#ifndef String
#define String char*
#endif
typedef struct _Point Point;
struct _Point {
/** Attributes **/
/*private*/
double x;
double y;
/** Associations **/
/** Operations **/
};
/** Operations **/
#endif
polygon.c 5/8
[top][prev][next]
#include "polygon.h"
polygon.h 6/8
[top][prev][next]
#ifndef __POLYGON_H__
#define __POLYGON_H__
#define POLYGON(OBJ) ((Polygon*)OBJ)
#ifndef String
#define String char*
#endif
#include "segment.h"
typedef struct _Polygon Polygon;
struct _Polygon {
/** Attributes **/
/** Associations **/
Segment segments;
/** Operations **/
};
/** Operations **/
#endif
segment.c 7/8
[top][prev][next]
#include "segment.h"
segment.h 8/8
[top][prev][next]
#ifndef __SEGMENT_H__
#define __SEGMENT_H__
#define SEGMENT(OBJ) ((Segment*)OBJ)
#ifndef String
#define String char*
#endif
#include "point.h"
typedef struct _Segment Segment;
struct _Segment {
/** Attributes **/
/** Associations **/
Point ends;
/** Operations **/
};
/** Operations **/
#endif
Generated by GNU enscript 1.6.1.