fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
  8.  
  9. /*
  10. Vector3D Vector3D::rotate(Vector3D ort, double angle) const {
  11. // Нормализация орта
  12. ort.normalize();
  13. // Сохранение синуса и косинуса для
  14. double cosA = std::cos(angle);
  15. double sinA = std::sin(angle);
  16. // Формула Родрига
  17. return Vector3D((*this) * cosA + (ort).cross(*this) * sinA + ort * this->dot(ort) * (1 - cosA));
  18. }
  19. */
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty