~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/lib/Database/ImgIndex.php

Renamed getClosestImage() "x" & "y" return values to the more intuitive "centerX" & "centerY" parameters. Limited precision of offsets to reflect highest available precision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        $center     = $xmlBox->getSunCenter();
98
98
 
99
99
        $meta = array(
100
 
            "width"  => (int) $dimensions[0],
101
 
            "height" => (int) $dimensions[1],
102
 
            "y"      => (float) $center[0],
103
 
            "x"      => (float) $center[1],
104
 
            "scale"  => (float) $xmlBox->getImagePlateScale()
 
100
            "width"   => (int) $dimensions[0],
 
101
            "height"  => (int) $dimensions[1],
 
102
            "centerX" => (float) $center[0],
 
103
            "centerY" => (float) $center[1],
 
104
            "scale"   => (float) $xmlBox->getImagePlateScale()
105
105
        );
106
106
 
107
107
        return $meta;