kick
/Users/morten/Programmering/cpp/kick/src/kick/math/spherical.h
00001 //
00002 // Created by Morten Nobel-Jørgensen on 29/10/14.
00003 //
00004 
00005 
00006 #pragma once
00007 
00008 #include "glm/glm.hpp"
00009 
00010 namespace kick {
00011 
00012 
00023     class Spherical {
00024     public:
00027         float radius;
00028 
00031 
00032         float polar;
00033 
00037         float elevation;
00038 
00039         glm::vec3 toCartesian();
00040 
00041         static Spherical cartesianToSpherical(glm::vec3 cartCoords);
00042 
00043         static glm::vec3 sphericalToCartesian(float radius, float polar, float elevation);
00044     };
00045 }
00046 
00047 
00048 
 All Classes Functions Variables