istereo
annotate libs/vmath/sphvec.h @ 28:c0ae8e668447
added vmath library
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 08 Sep 2011 08:30:42 +0300 |
parents | |
children | ff055bff6a15 |
rev | line source |
---|---|
nuclear@28 | 1 #ifndef VMATH_SPHVEC_H_ |
nuclear@28 | 2 #define VMATH_SPHVEC_H_ |
nuclear@28 | 3 |
nuclear@28 | 4 #include "vmath_types.h" |
nuclear@28 | 5 |
nuclear@28 | 6 #ifdef __cplusplus |
nuclear@28 | 7 /* Vector in spherical coordinates */ |
nuclear@28 | 8 class SphVector { |
nuclear@28 | 9 public: |
nuclear@28 | 10 scalar_t theta, phi, r; |
nuclear@28 | 11 |
nuclear@28 | 12 SphVector(scalar_t theta = 0.0, scalar_t phi = 0.0, scalar_t r = 1.0); |
nuclear@28 | 13 SphVector(const Vector3 &cvec); |
nuclear@28 | 14 SphVector &operator =(const Vector3 &cvec); |
nuclear@28 | 15 }; |
nuclear@28 | 16 #endif /* __cplusplus */ |
nuclear@28 | 17 |
nuclear@28 | 18 #endif /* VMATH_SPHVEC_H_ */ |