~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/src/Helper/RegionOfInterest.php

  • Committer: Keith Hughitt
  • Date: 2011-04-25 19:26:03 UTC
  • mto: This revision was merged to the branch mainline in revision 567.
  • Revision ID: keith.hughitt@nasa.gov-20110425192603-25zf9j8ne9212sqx
Reimplemented getMovie using new scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
     */
49
49
    public function __construct($x1, $x2, $y1, $y2, $imageScale, $maxWidth=1920, $maxHeight=1080)
50
50
    {
51
 
        $this->_top    = $y1;
52
 
        $this->_left   = $x1;
53
 
        $this->_bottom = $y2;
54
 
        $this->_right  = $x2;
55
 
        $this->_scale  = $imageScale;
 
51
        $this->_top    = (float) $y1;
 
52
        $this->_left   = (float) $x1;
 
53
        $this->_bottom = (float) $y2;
 
54
        $this->_right  = (float) $x2;
 
55
        $this->_scale  = (float) $imageScale;
56
56
        
57
57
        // Maximum dimensions allowed for request
58
58
        $this->_maxWidth  = $maxWidth;