/*
  定義した型の内容を出力
  Satofumi KAMIMURA
  $Id: typePrint.cpp 286 2008-10-20 09:40:22Z satofumi $
*/

#include "typePrint.h"


std::ostream& operator<<(std::ostream& s, const VXV::Direction& rhs) {
  return s << rhs.to_deg() << '(' << rhs.to_rad() << ')';
}


std::ostream& operator<<(std::ostream& s, const VXV::Position3D& rhs) {
  return
    s << rhs.x << ", " << rhs.y << ", " << rhs.z << ", "
      << rhs.xt.to_deg() << '(' << rhs.xt.to_rad() << "), "
      << rhs.yt.to_deg() << '(' << rhs.yt.to_rad() << "), "
      << rhs.zt.to_deg() << '(' << rhs.zt.to_rad() << ')';
}


std::ostream& operator<<(std::ostream& s, const VXV::Position& rhs) {
  return
    s << rhs.x << ", " << rhs.y << ", "
      << rhs.zt.to_deg() << '(' << rhs.zt.to_rad() << ')';
}


