ama-team/php-projection-framework

View on GitHub
src/API/Type/ReaderInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AmaTeam\Image\Projection\API\Type;

/**
 * This interface describes an API for reading an abstract ellipsoid, recorded
 * in a cube map, equirectangular projection, or anything else.
 */
interface ReaderInterface
{
    const INTERPOLATION_NEAREST_NEIGHBOUR = 1;
    const INTERPOLATION_BILINEAR = 2;

    /**
     * Retrieves color at specific location.
     *
     * @param float $latitude
     * @param float $longitude
     * @return int Color as int32 number: RRGGBBAA
     */
    public function getColorAt($latitude, $longitude);
}