RobinTrace
Vec3.h
Go to the documentation of this file.
1 
3 #ifndef VEC3_H
4 #define VEC3_H
5 
6 #include <cmath>
7 #include <iostream>
8 #include <Eigen/Dense>
9 
11 typedef Eigen::Vector3d Vec3;
12 
19 Vec3 Vec3_lm (double l, double m, bool nsign);
20 
22 std::ostream& operator<< (std::ostream &out, const Vec3 &v);
23 
24 #endif //VEC3_H
Eigen::Vector3d Vec3
Definition: Vec3.h:11
std::ostream & operator<<(std::ostream &out, const Vec3 &v)
Vec3 printer.
Definition: Vec3.cpp:24
Vec3 Vec3_lm(double l, double m, bool nsign)
Constructor of a unit Vec3 from direction cosines (l, m) and the sign of n.
Definition: Vec3.cpp:16