~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to NuxCore/Math/Trigonometry.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TRIGONOMETRY_H
 
2
#define TRIGONOMETRY_H
 
3
 
 
4
#include "Vector3.h"
 
5
 
 
6
NAMESPACE_BEGIN
 
7
// Assume the spherical coordinate system relatively to a right handed xyz, 
 
8
// with Z pointing up.
 
9
// 0 <= phi < 180
 
10
// 0 <= theta < 360 ->>> along X axis, theta = 0.
 
11
Vector3 SphericalToCartesianXBaseDeg(float r, float theta, float phi);
 
12
Vector3 SphericalToCartesianXBaseRad(float r, float theta, float phi);
 
13
 
 
14
// Assume the spherical coordinate system relatively to a right handed xyz, 
 
15
// with Y pointing up.
 
16
// 0 <= phi < 180
 
17
// 0 <= theta < 360 ->>> along Z axis, theta = 0.
 
18
Vector3 SphericalToCartesianZBaseDeg(float r, float theta, float phi);
 
19
Vector3 SphericalToCartesianZBaseRad(float r, float theta, float phi);
 
20
 
 
21
Vector3 CartesianToSphericalXBaseRad(float x, float y, float z);
 
22
Vector3 CartesianToSphericalZBaseDeg(float x, float y, float z);
 
23
 
 
24
 
 
25
NAMESPACE_END
 
26
 
 
27
 
 
28
 
 
29
#endif // TRIGONOMETRY_H
 
 
b'\\ No newline at end of file'