KrisLibrary  1.0.0
polar.h
Go to the documentation of this file.
1 #ifndef MATH3D_POLAR_H
2 #define MATH3D_POLAR_H
3 
4 #include "primitives.h"
5 
21 namespace Math3D {
22 
25 
26 //conversion routines
27 void PolarToRectangular(const Vector2& polar, Vector2& rect);
28 void RectangularToPolar(const Vector2& rect, Vector2& polar);
29 
30 void SphericalToRectangular(const Vector3& sphere, Vector3& rect);
31 void RectangularToSpherical(const Vector3& rect, Vector3& sphere);
32 
33 void CylindricalToRectangular(const Vector3& cyl, Vector3& rect);
34 void RectangularToCylindrical(const Vector3& rect, Vector3& cyl);
35 
36 //derivatives of polar coordinates in rectangular coordinates
37 void PolarDR(const Vector2& polar, Vector2& drect);
38 void PolarDTheta(const Vector2& polar, Vector2& drect);
39 
40 void SphericalDR(const Vector3& sphere, Vector3& drect);
41 void SphericalDTheta(const Vector3& sphere, Vector3& drect);
42 void SphericalDPhi(const Vector3& sphere, Vector3& drect);
43 
44 void CylindricalDR(const Vector3& cyl, Vector3& drect);
45 void CylindricalDTheta(const Vector3& cyl, Vector3& drect);
46 void CylindricalDZ(const Vector3& cyl, Vector3& drect);
47 
50 } //namespace Math3D
51 
52 #endif
Class declarations for useful 3D math types.
Contains all the definitions in the Math3D package.
Definition: AnyGeometry.h:13