This file is indexed.

/usr/include/osgEarth/ECEF is in libosgearth-dev 2.7.0+dfsg-2+b3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
 * Copyright 2015 Pelican Mapping
 * http://osgearth.org
 *
 * osgEarth is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

#ifndef OSGEARTH_ECEF_H
#define OSGEARTH_ECEF_H 1

#include <osgEarth/Common>
#include <osgEarth/SpatialReference>
#include <osg/Matrix>

namespace osgEarth
{
    struct OSGEARTH_EXPORT ECEF
    {
        /**
         * Creates a "localization" matrix for double-precision geocentric
         * coordinates. The matrix is ceneterd at the specified ECEF reference point.
         * @deprecated - use SpatialReference::createLocalToWorld
         */
        static osg::Matrixd createLocalToWorld( 
            const osg::Vec3d& ecefRefPoint );

        /**
         * Transforms a point into ECEF coordinates, localizes it with
         * the provided world2local matrix, and puts the result in "output".
         */
        static void transformAndLocalize(
            const osg::Vec3d&       input,
            const SpatialReference* inputSRS,
            osg::Vec3d&             output,
            const SpatialReference* outputSRS,
            const osg::Matrixd&     world2local =osg::Matrixd() );

        /**
         * Transforms the points in "input" to ECEF coordinates, localizes them with
         * the provided world2local matrix, and puts the result in "output".
         */
        static void transformAndLocalize(
            const std::vector<osg::Vec3d>& input,
            const SpatialReference*        inputSRS,
            osg::Vec3Array*                output,
            const SpatialReference*        outputSRS,
            const osg::Matrixd&            world2local =osg::Matrixd() );

        /**
         * Transforms the points in "input" to ECEF coordinates, localizes them with
         * the provided world2local matrix, and puts the resulting verts in "out_verts"
         * and the resulting localized normals in "out_normals" (if "out_normals" is
         * non-NULL).
         */
        static void transformAndLocalize(
            const std::vector<osg::Vec3d>& input,
            const SpatialReference*        inputSRS,
            osg::Vec3Array*                out_verts,
            osg::Vec3Array*                out_normals,
            const SpatialReference*        outputSRS,
            const osg::Matrixd&            world2local =osg::Matrixd() );

        /**
         * Transforms a point to ECEF, and at the same time returns a quaternion that
         * rotates the point into the local tangent place at that point.
         */
        static void transformAndGetRotationMatrix(
            const osg::Vec3d&       input,
            const SpatialReference* inputSRS,
            osg::Vec3d&             out_ecef_point,
            const SpatialReference* outputSRS,
            osg::Matrixd&           out_rotation );
    };
}

#endif // OSGEARTH_ECEF_H