SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLVec3.h File Reference
#include <cmath>
#include <SLMath.h>
#include <SLVec2.h>
#include <Utils.h>
Include dependency graph for SLVec3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SLVec3< T >
 3D vector template class for standard 3D vector algebra. More...
 

Typedefs

typedef SLVec3< SLfloatSLVec3f
 
typedef SLVec3< SLfloatSLCol3f
 
typedef SLVec3< SLintSLVec3i
 
typedef SLVec3< SLuintSLVec3ui
 
typedef SLVec3< SLshortSLVec3s
 
typedef SLVec3< double > SLVec3d
 
typedef vector< SLVec3fSLVVec3f
 
typedef vector< SLCol3fSLVCol3f
 
typedef vector< SLVec3dSLVVec3d
 
typedef vector< SLfloatSLVfloat
 

Variables

static const double EARTH_RADIUS_A = 6378137
 
static const double EARTH_ECCENTRICTIY = 8.1819190842622e-2
 
static const double EARTH_RADIUS_A_SQR = EARTH_RADIUS_A * EARTH_RADIUS_A
 
static const double EARTH_ECCENTRICTIY_SQR = EARTH_ECCENTRICTIY * EARTH_ECCENTRICTIY
 
static const double EARTH_RADIUS_B = sqrt(EARTH_RADIUS_A_SQR * (1 - EARTH_ECCENTRICTIY_SQR))
 
static const double EARTH_RADIUS_B_SQR = EARTH_RADIUS_B * EARTH_RADIUS_B
 
static const double EARTH_ECCENTRICTIY2 = sqrt((EARTH_RADIUS_A_SQR - EARTH_RADIUS_B_SQR) / EARTH_RADIUS_B_SQR)
 
static const double EARTH_ECCENTRICTIY2_SQR = EARTH_ECCENTRICTIY2 * EARTH_ECCENTRICTIY2
 

Typedef Documentation

◆ SLCol3f

Definition at line 319 of file SLVec3.h.

◆ SLVCol3f

typedef vector<SLCol3f> SLVCol3f

Definition at line 326 of file SLVec3.h.

◆ SLVec3d

typedef SLVec3<double> SLVec3d

Definition at line 323 of file SLVec3.h.

◆ SLVec3f

Definition at line 318 of file SLVec3.h.

◆ SLVec3i

typedef SLVec3<SLint> SLVec3i

Definition at line 320 of file SLVec3.h.

◆ SLVec3s

Definition at line 322 of file SLVec3.h.

◆ SLVec3ui

Definition at line 321 of file SLVec3.h.

◆ SLVfloat

typedef vector<SLfloat> SLVfloat

Definition at line 329 of file SLVec3.h.

◆ SLVVec3d

typedef vector<SLVec3d> SLVVec3d

Definition at line 327 of file SLVec3.h.

◆ SLVVec3f

typedef vector<SLVec3f> SLVVec3f

Definition at line 325 of file SLVec3.h.

Variable Documentation

◆ EARTH_ECCENTRICTIY

const double EARTH_ECCENTRICTIY = 8.1819190842622e-2
static

Definition at line 21 of file SLVec3.h.

◆ EARTH_ECCENTRICTIY2

const double EARTH_ECCENTRICTIY2 = sqrt((EARTH_RADIUS_A_SQR - EARTH_RADIUS_B_SQR) / EARTH_RADIUS_B_SQR)
static

Definition at line 26 of file SLVec3.h.

◆ EARTH_ECCENTRICTIY2_SQR

const double EARTH_ECCENTRICTIY2_SQR = EARTH_ECCENTRICTIY2 * EARTH_ECCENTRICTIY2
static

Definition at line 27 of file SLVec3.h.

◆ EARTH_ECCENTRICTIY_SQR

const double EARTH_ECCENTRICTIY_SQR = EARTH_ECCENTRICTIY * EARTH_ECCENTRICTIY
static

Definition at line 23 of file SLVec3.h.

◆ EARTH_RADIUS_A

const double EARTH_RADIUS_A = 6378137
static

Definition at line 20 of file SLVec3.h.

◆ EARTH_RADIUS_A_SQR

const double EARTH_RADIUS_A_SQR = EARTH_RADIUS_A * EARTH_RADIUS_A
static

Definition at line 22 of file SLVec3.h.

◆ EARTH_RADIUS_B

const double EARTH_RADIUS_B = sqrt(EARTH_RADIUS_A_SQR * (1 - EARTH_ECCENTRICTIY_SQR))
static

Definition at line 24 of file SLVec3.h.

◆ EARTH_RADIUS_B_SQR

const double EARTH_RADIUS_B_SQR = EARTH_RADIUS_B * EARTH_RADIUS_B
static

Definition at line 25 of file SLVec3.h.