diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-06-12 14:40:06 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-06-12 14:40:06 +0000 |
commit | b33909275f604b119c59972779a47a4288e0f5ec (patch) | |
tree | 756bf13bee3a4ed395bc1885391341533d991f65 /src/math | |
parent | 99117b7f9eb39a6d77eededce51a4d0aa895cc5b (diff) | |
download | zetacomponents-graph-b33909275f604b119c59972779a47a4288e0f5ec.zip zetacomponents-graph-b33909275f604b119c59972779a47a4288e0f5ec.tar.gz |
- More documentation fixes
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/boundings.php | 2 | ||||
-rw-r--r-- | src/math/polynom.php | 15 | ||||
-rw-r--r-- | src/math/transformation.php | 2 | ||||
-rw-r--r-- | src/math/translation.php | 10 |
4 files changed, 25 insertions, 4 deletions
diff --git a/src/math/boundings.php b/src/math/boundings.php index a8f474f..b6dd5f0 100644 --- a/src/math/boundings.php +++ b/src/math/boundings.php @@ -57,7 +57,7 @@ class ezcGraphBoundings * @param float $y1 Bottom right y coordinate * @return ezcGraphBoundings */ - public function __construct( $x0 = 0, $y0 = 0, $x1 = false, $y1 = false ) + public function __construct( $x0 = 0., $y0 = 0., $x1 = false, $y1 = false ) { $this->x0 = $x0; $this->y0 = $y0; diff --git a/src/math/polynom.php b/src/math/polynom.php index 5266191..6dd2fec 100644 --- a/src/math/polynom.php +++ b/src/math/polynom.php @@ -15,6 +15,21 @@ */ class ezcGraphPolynom { + /** + * Factors of the polynom + * + * An example: + * Polynom: + * 2 * x^3 + .5 * x - 3 + * Array: + * array ( + * (int) 3 => (float) 2, + * (int) 1 => (float) .5, + * (int) 0 => (float) -3, + * ) + * + * @var array + */ protected $values; // @TODO: Introduce precision option for string output? diff --git a/src/math/transformation.php b/src/math/transformation.php index 7f45d41..37f2dba 100644 --- a/src/math/transformation.php +++ b/src/math/transformation.php @@ -25,8 +25,6 @@ class ezcGraphTransformation extends ezcGraphMatrix * define the initial matrix values. If no array is given an identity * matrix is created. * - * @param int $rows - * @param int $columns * @param array $values * @return void */ diff --git a/src/math/translation.php b/src/math/translation.php index 8c2b5a6..aaf021b 100644 --- a/src/math/translation.php +++ b/src/math/translation.php @@ -17,7 +17,15 @@ */ class ezcGraphTranslation extends ezcGraphTransformation { - public function __construct( $x = 0, $y = 0 ) + /** + * Constructor + * + * @param float $x + * @param float $y + * @return void + * @ignore + */ + public function __construct( $x = 0., $y = 0. ) { parent::__construct( array( array( 1, 0, $x ), |