TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file ArrowPoint.php

Documentation is available at ArrowPoint.php

  1. <?php
  2.  
  3. /**
  4.  * ArrowPoint class
  5.  *
  6.  * Description: ArrowPoint characteristics
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @link http://www.steema.com
  13.  */
  14.  
  15.  class ArrowPoint {
  16.  
  17.     public $x;
  18.     public $y;
  19.     public $z;
  20.     public $sinA;
  21.     public $cosA;
  22.     public $g;
  23.  
  24.     public function calc({
  25.         $p new TeePoint(MathUtils::round($this->x * $this->cosA + $this->y * $this->sinA),
  26.               MathUtils::round-$this->x * $this->sinA + $this->y * $this->cosA));
  27.  
  28.         return $this->g->calc3DPoint($p->getX()$p->getY()$this->z);
  29.     }
  30. }
  31. ?>

Documentation generated on Wed, 16 Jun 2010 12:02:43 +0200 by phpDocumentor 1.4.1