1 #ifndef MF_SPHERICAL_COORDINATES_H_
2 #define MF_SPHERICAL_COORDINATES_H_
34 explicit operator bool ()
const {
return valid(); }
38 std::ostream&
operator<<(std::ostream&,
const spherical_coordinates&);
bool valid() const
Definition: spherical_coordinates.h:33
spherical_coordinates(float r, angle az, angle el)
Definition: spherical_coordinates.h:23
void invalidate()
Definition: spherical_coordinates.h:32
bool operator!=(const spherical_coordinates &) const
Definition: spherical_coordinates.cc:35
angle elevation
Definition: spherical_coordinates.h:19
Eigen::Vector3f to_cartesian() const
Definition: spherical_coordinates.cc:18
static spherical_coordinates from_cartesian(const Eigen::Vector3f &)
Definition: spherical_coordinates.cc:8
spherical_coordinates()=default
angle azimuth
Definition: spherical_coordinates.h:18
Spherical coordinates.
Definition: spherical_coordinates.h:16
float radius
Definition: spherical_coordinates.h:17
Angle, represented in radiants.
Definition: angle.h:12
bool operator==(const spherical_coordinates &) const
Definition: spherical_coordinates.cc:27
std::ostream & operator<<(std::ostream &str, const time_span &span)
Definition: common.h:76