std::ostream& operator << (std::ostream& ostr, const SensorPositionIDL& position) { ostr << " height=" << position.height << "mm" << " distance=" << position.distance << "mm" << " alpha=" << rad2Deg(position.alpha) << "°" << " beta=" << rad2Deg(position.beta) << "°" << " gamma=" << rad2Deg(position.gamma) << "°" << " masked=" << (position.masked? "true" : "false"); return ostr; }
// gets offset in meters static double getOffset(const GeoCoordinate& point, double offsetInMeters) { double lat = deg2Rad(point.latitude); // Radius of Earth at given latitude double radius = wgs84EarthRadius(lat); double dWidth = offsetInMeters / (2 * radius); return rad2Deg(dWidth); }
std::ostream& operator << (std::ostream& ostr, const CameraParameters& desc) { ostr << "ncx = " << desc.ncx << endl << "nfx = " << desc.nfx << endl << "dx = " << desc.dx << endl << "dy = " << desc.dy << endl << "cx = " << desc.cx << endl << "cy = " << desc.cy << endl << "sx = " << desc.sx << endl << "f = " << desc.f << endl << "kappa = " << desc.kappa << endl << "height = " << desc.height << endl << "alpha = " << rad2Deg(desc.alpha) << endl << "latency = " << desc.latency << endl; return ostr; }
// output operator for PositionIDL std::ostream & operator<<(std::ostream &ostr, const PositionIDL &rhs) { ostr << "(" << rhs.point << ","; ostr << rad2Deg(rhs.heading) << "°)"; return ostr; }
// output operator for PanTiltPositionIDL std::ostream & operator<<(std::ostream &ostr, const PanTiltPositionIDL &rhs) { ostr << rad2Deg(rhs.panvalue) << "° "; ostr << rad2Deg(rhs.tiltvalue) << "°"; return ostr; }
// output operator for VelocityIDL std::ostream & operator<<(std::ostream &ostr, const VelocityIDL &rhs) { ostr << rhs.translation << "mm/s " << rad2Deg(rhs.rotation) << "°/s"; return ostr; }
// degAngle //-------------------------------------------------------------------------- int Math::degAngle(float x, float y) { return rad2Deg(radAngle(x, y)); } // end Math::degAngle
// degAngle //-------------------------------------------------------------------------- int Math::degAngle(const iXY &a, const iXY &b) { return rad2Deg(radAngle(a, b)); } // end Math::degAngle