kick
Public Member Functions | Static Public Member Functions | Public Attributes
kick::Spherical Class Reference

#include <spherical.h>

List of all members.

Public Member Functions

glm::vec3 toCartesian ()

Static Public Member Functions

static Spherical cartesianToSpherical (glm::vec3 cartCoords)
static glm::vec3 sphericalToCartesian (float radius, float polar, float elevation)

Public Attributes

float radius
float polar
float elevation
 elevation angle from the reference plane

Detailed Description

In mathematics, a spherical coordinate system is a coordinate system for three-dimensional space where the position of a point is specified by three numbers: the radial distance of that point from a fixed origin, its inclination angle measured from a fixed zenith direction, and the azimuth angle of its orthogonal projection on a reference plane that passes through the origin and is orthogonal to the zenith, measured from a fixed reference direction on that plane.

The zenith direction is the up vector (0,1,0) and the azimuth is the right vector (1,0,0)

(From http://en.wikipedia.org/wiki/Spherical_coordinate_system )

Definition at line 23 of file spherical.h.


Member Data Documentation

elevation angle from the reference plane

Definition at line 37 of file spherical.h.

azimuth angle of its orthogonal projection on a reference plane that passes through the origin and is orthogonal to the zenith

Definition at line 32 of file spherical.h.

the radial distance of that point from a fixed origin. Radius must be >= 0

Definition at line 27 of file spherical.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables