source: code/Website/php-ofc-library/ofc_shape.php@ 7878

Last change on this file since 7878 was 7849, checked in by dennisw, 15 years ago
File size: 316 bytes
Line 
1<?php
2
3class shape_point
4{
5 function shape_point( $x, $y )
6 {
7 $this->x = $x;
8 $this->y = $y;
9 }
10}
11
12class shape
13{
14 function shape( $colour )
15 {
16 $this->type = "shape";
17 $this->colour = $colour;
18 $this->values = array();
19 }
20
21 function append_value( $p )
22 {
23 $this->values[] = $p;
24 }
25}
Note: See TracBrowser for help on using the repository browser.