osgEarth 2.1.1
Classes | Namespaces | Defines | Functions | Variables

/home/cube/sources/osgearth/src/osgEarthDrivers/engine_seamless/Euler.cpp File Reference

#include "Euler"
#include <algorithm>
#include <vector>
#include <osg/Math>
#include <osg/CoordinateSystemNode>
#include <osgEarth/Registry>
#include <ogr_api.h>
#include <ogr_spatialref.h>
#include "AutoBuffer"
Include dependency graph for Euler.cpp:

Go to the source code of this file.

Classes

class  seamless::CacheInitializer

Namespaces

namespace  seamless
namespace  seamless::euler
namespace  seamless::anonymous_namespace{Euler.cpp}

Defines

#define LC   "[seamless::EULER] "

Functions

bool seamless::euler::lineLineIntersect (const Vec3d &p1, const Vec3d &p2, const Vec3d &p3, const Vec3d &p4, Vec3d &pa, Vec3d &pb, double &mua, double &mub)
Vec3d seamless::euler::latLon2xyz (double lat_deg, double lon_deg)
int seamless::euler::getFace (const Vec3d &vec)
Vec3d seamless::euler::xyz2qrs (const Vec3d &xyz, int face)
bool seamless::euler::latLonToFaceCoords (double lat_deg, double lon_deg, double &out_x, double &out_y, int &out_face, int faceHint=-1)
Vec3d seamless::euler::face2qrs (const Vec2d &face)
Vec3d seamless::euler::qrs2xyz (const Vec3d &local, int face)
Vec3d seamless::euler::face2dc (int faceNum, const Vec2d &faceCoord)
bool seamless::euler::faceCoordsToLatLon (double x, double y, int face, double &out_lat_deg, double &out_lon_deg)
bool seamless::euler::cubeToFace (double &in_out_x, double &in_out_y, int &out_face)
bool seamless::euler::cubeToFace (double &in_out_xmin, double &in_out_ymin, double &in_out_xmax, double &in_out_ymax, int &out_face)
bool seamless::euler::faceToCube (double &in_out_x, double &in_out_y, int face)
double seamless::euler::arcLength (const Vec2d &coord1, const Vec2d &coord2, int face)
static osg::Vec3d seamless::euler::closestPointOnLine (const osg::Vec3d &p1, const osg::Vec3d &p2, const osg::Vec3d &p3)
double seamless::euler::distanceToLine (const Vec3d &p1, const Vec3d &p2, const Vec3d &p3)
double seamless::euler::distanceToSegment (const Vec3d &p, const Vec3d &geo1, const Vec3d &geo2, const Vec3d &norm)
Vec3d seamless::euler::getNormalToSegment (const Vec2d &coord1, const Vec2d &coord2, int face)
double seamless::euler::distanceToSegment (const Vec3d &p, const Vec2d &coord1, const Vec2d &coord2, int face)
SpatialReferenceseamless::anonymous_namespace{Euler.cpp}::createEulerSRS ()

Variables

const double seamless::PiOver12 = PI / 12.0
const double seamless::PiOver12Inv = 12.0 / PI
const double seamless::sqrt2 = 1.41421356237309504880
const double seamless::sqrt33 = .5773502691896258
CacheInitializer seamless::anonymous_namespace{Euler.cpp}::s_cacheInitializer

Define Documentation

#define LC   "[seamless::EULER] "

Definition at line 33 of file Euler.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines