KrisLibrary  1.0.0
Namespaces | Functions
polar.h File Reference

Conversions between rectangular and polar forms. More...

#include "primitives.h"

Go to the source code of this file.

Namespaces

 Math3D
 Contains all the definitions in the Math3D package.
 

Functions

void Math3D::PolarToRectangular (const Vector2 &polar, Vector2 &rect)
 
void Math3D::RectangularToPolar (const Vector2 &rect, Vector2 &polar)
 
void Math3D::SphericalToRectangular (const Vector3 &sphere, Vector3 &rect)
 
void Math3D::RectangularToSpherical (const Vector3 &rect, Vector3 &sphere)
 
void Math3D::CylindricalToRectangular (const Vector3 &cyl, Vector3 &rect)
 
void Math3D::RectangularToCylindrical (const Vector3 &rect, Vector3 &cyl)
 
void Math3D::PolarDR (const Vector2 &polar, Vector2 &drect)
 
void Math3D::PolarDTheta (const Vector2 &polar, Vector2 &drect)
 
void Math3D::SphericalDR (const Vector3 &sphere, Vector3 &drect)
 
void Math3D::SphericalDTheta (const Vector3 &sphere, Vector3 &drect)
 
void Math3D::SphericalDPhi (const Vector3 &sphere, Vector3 &drect)
 
void Math3D::CylindricalDR (const Vector3 &cyl, Vector3 &drect)
 
void Math3D::CylindricalDTheta (const Vector3 &cyl, Vector3 &drect)
 
void Math3D::CylindricalDZ (const Vector3 &cyl, Vector3 &drect)
 

Detailed Description

Conversions between rectangular and polar forms.

polar coords: (r,theta) : (x,y) = (r cos theta, r sin theta) r in [0,inf), theta in [0,2pi)

cylindrical coords: (r,theta,z) : (x,y,z) = (r cos theta, r sin theta, z) r in [0,inf), theta in [0,2pi)

spherical coords: (r,theta,phi) : (x,y,z) = (r cos theta cos phi, r sin theta cos phi, r sin phi) r in [0,inf), theta in [0,2pi), phi in [-pi, pi]