Subversion Repositories gelsvn

Rev

Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 461
Line 13... Line 13...
13
		/// Construct a 3D int vector.
13
		/// Construct a 3D int vector.
14
		ArithVec3Int(T a, T b, T c): ArithVecInt<T,V,3>(a,b,c) {}
14
		ArithVec3Int(T a, T b, T c): ArithVecInt<T,V,3>(a,b,c) {}
15
 
15
 
16
		/// Construct a 3D int vector.
16
		/// Construct a 3D int vector.
17
		ArithVec3Int() {}
17
		ArithVec3Int() {}
18
 
-
 
19
		/** Get the vector in spherical coordinates.
-
 
20
				The first argument (theta) is inclination from the vertical axis.
-
 
21
				The second argument (phi) is the angle of rotation about the vertical 
-
 
22
				axis. The third argument (r) is the length of the vector. */
-
 
23
		void get_spherical( T&, T&, T& ) const;
-
 
24
 
-
 
25
		/** Assign the vector in spherical coordinates.
-
 
26
				The first argument (theta) is inclination from the vertical axis.
-
 
27
				The second argument (phi) is the angle of rotation about the vertical 
-
 
28
				axis. The third argument (r) is the length of the vector. */
-
 
29
		void set_spherical( T, T, T);
-
 
30
		
18
		
31
	};
19
	};
32
 
20
 
33
	/// Returns cross product of arguments
21
	/// Returns cross product of arguments
34
	template<class T, class V>
22
	template<class T, class V>