| 1209 | } |
| 1210 | |
| 1211 | void InputCamera::writeToFile(std::ostream& outfile) const |
| 1212 | { |
| 1213 | outfile << IBRVIEW_TOPVIEW_SAVEVERSION "\n"; |
| 1214 | Vector3f v = transform().position(); |
| 1215 | Quaternionf q = transform().rotation(); |
| 1216 | outfile << " " << v.x() << " " << v.y() << " " << v.z() << " "; |
| 1217 | outfile << q.x() << " " << q.y() << " " << q.z() << " " << q.w(); |
| 1218 | } |
| 1219 | |
| 1220 | std::string InputCamera::toBundleString(bool negativeZ, bool recomputeFocal) const { |
| 1221 |