GGL    Boost C++ Libraries

ggl::cs::spherical< DegreeOrRadian > Struct Template Reference
[coordinate systems]

Spherical coordinate system, in degree or in radian. More...

List of all members.

Public Types

typedef DegreeOrRadian units


Detailed Description

template<typename DegreeOrRadian>
struct ggl::cs::spherical< DegreeOrRadian >

Spherical coordinate system, in degree or in radian.

Defines the spherical coordinate system where points are defined in two angles and an optional radius usually known as r, theta, phi

Coordinates:
  • coordinate 0: 0 <= phi < 2pi is the angle between the positive x-axis and the line from the origin to the P projected onto the xy-plane.
  • coordinate 1: 0 <= theta <= pi is the angle between the positive z-axis and the line formed between the origin and P.
  • coordinate 2 (if specified): r >= 0 is the distance from the origin to a given point P.
See also:
http://en.wikipedia.org/wiki/Spherical_coordinates

Definition at line 95 of file cs.hpp.


Member Typedef Documentation

template<typename DegreeOrRadian >
typedef DegreeOrRadian ggl::cs::spherical< DegreeOrRadian >::units

Definition at line 97 of file cs.hpp.


November 5, 2009

Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam
Copyright © 2008-2009 Bruno Lalande, Paris
Copyright © 2009 Mateusz Loskot, Cadcorp, London
Documentation is generated by Doxygen