| 511 | } |
| 512 | |
| 513 | void cross(const std::array<double, 3>& v1, const std::array<double, 3>& v2, std::array<double, 3>& result) { |
| 514 | result[0] = v1[1] * v2[2] - v1[2] * v2[1]; |
| 515 | result[1] = v1[2] * v2[0] - v1[0] * v2[2]; |
| 516 | result[2] = v1[0] * v2[1] - v1[1] * v2[0]; |
| 517 | } |
| 518 | |
| 519 | void proj_log(void *, int, const char* c) { |
| 520 | Logger::Error("PROJ: " + std::string(c)); |