istereo

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/vmath/sphvec.h	Thu Sep 08 08:30:42 2011 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +#ifndef VMATH_SPHVEC_H_
     1.5 +#define VMATH_SPHVEC_H_
     1.6 +
     1.7 +#include "vmath_types.h"
     1.8 +
     1.9 +#ifdef __cplusplus
    1.10 +/* Vector in spherical coordinates */
    1.11 +class SphVector {
    1.12 +public:
    1.13 +	scalar_t theta, phi, r;
    1.14 +
    1.15 +	SphVector(scalar_t theta = 0.0, scalar_t phi = 0.0, scalar_t r = 1.0);
    1.16 +	SphVector(const Vector3 &cvec);
    1.17 +	SphVector &operator =(const Vector3 &cvec);
    1.18 +};
    1.19 +#endif	/* __cplusplus */
    1.20 +
    1.21 +#endif	/* VMATH_SPHVEC_H_ */