istereo2

view libs/vmath/sphvec.h @ 32:622f61160016

ok this fixes it but why?
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Oct 2015 05:17:11 +0300
parents
children
line source
1 /*
2 libvmath - a vector math library
3 Copyright (C) 2004-2011 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
19 #ifndef VMATH_SPHVEC_H_
20 #define VMATH_SPHVEC_H_
22 #include "vmath_types.h"
24 #ifdef __cplusplus
25 /* Vector in spherical coordinates */
26 class SphVector {
27 public:
28 scalar_t theta, phi, r;
30 SphVector(scalar_t theta = 0.0, scalar_t phi = 0.0, scalar_t r = 1.0);
31 SphVector(const Vector3 &cvec);
32 SphVector &operator =(const Vector3 &cvec);
33 };
34 #endif /* __cplusplus */
36 #endif /* VMATH_SPHVEC_H_ */