~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/CoordinateSystemNode

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-07-29 04:34:38 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080729043438-no1h9h0dpsrlzp1y
* Non-maintainer upload.
* No longer try to detect (using /proc/cpuinfo when available) how many
  CPUs are available, fixing the FTBFS (due to -j0) on various platforms
  (Closes: #477353). The right way to do it is to support parallel=n in
  DEB_BUILD_OPTIONS (see Debian Policy §4.9.1), and adequate support has
  been implemented.
* Add patch to fix FTBFS due to the build system now refusing to handle
  whitespaces (Policy CMP0004 say the logs), thanks to Andreas Putzo who
  provided it (Closes: #482239):
   - debian/patches/fix-cmp0004-build-failure.dpatch
* Remove myself from Uploaders, as requested a while ago, done by Luk in
  his 2.2.0-2.1 NMU, which was never acknowledged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
const double WGS_84_RADIUS_POLAR = 6356752.3142;
25
25
 
26
26
/** EllipsoidModel encapsulates the ellipsoid used to model astronomical bodies,
27
 
 * such as sun, planets, moon etc. */
 
27
 * such as sun, planets, moon etc. 
 
28
 * All distance quantities (i.e. heights + radius) are in meters,
 
29
 * and latitude and longitude are in radians.*/
28
30
class EllipsoidModel : public Object
29
31
{
30
32
    public:
31
33
 
32
 
   /** WGS_84 is a common representation of the earth's spheroid
33
 
     */
 
34
        /** WGS_84 is a common representation of the earth's spheroid */
34
35
        EllipsoidModel(double radiusEquator = WGS_84_RADIUS_EQUATOR,
35
36
                       double radiusPolar = WGS_84_RADIUS_POLAR):
36
37
            _radiusEquator(radiusEquator),
219
220
 
220
221
inline osg::Vec3d EllipsoidModel::computeLocalUpVector(double X, double Y, double Z) const
221
222
{
222
 
    osg::Vec3 normal(X,Y,Z);
 
223
    osg::Vec3d normal(X,Y,Z);
223
224
    normal.normalize();
224
225
    return normal;
225
226
}