21784_旋转

2022-5-16 18:20| 发布者: Hocassian| 查看: 22| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505845492100-Problem List-采集的数据-后羿采集器.html

Pro.ID

21784

Title

旋转

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21784

AC

8

Submit

11

Ratio

72.73%

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/32768 K (Java/Others)
  • 描述

    求空间中一个点绕一穿过原点的轴线旋转一定角度后的坐标,沿着旋转轴往原点看旋转的角度为顺时针。(Angles are measured clockwise when looking along the rotation axis toward the origin. )

    输入

    一个点的3个坐标 x, y, z,

    轴线上除原点外的一点 xn, yn, zn

    角度 angle(弧度)

    输出

    Description

    求空间中一个点绕一穿过原点的轴线旋转一定角度后的坐标,沿着旋转轴往原点看旋转的角度为顺时针。(Angles are measured clockwise when looking along the rotation axis toward the origin. )

    Input

    一个点的3个坐标 x, y, z,

    轴线上除原点外的一点 xn, yn, zn

    角度 angle(弧度)

    Output

    旋转以后的坐标 (小数点后保留3位)

    Sample Input

    2.0 3.0 6.0
    5.0 5.0 5.0
    3.14
    100.0 200.0 300.0
    500.0 600.0 700.0
    1.25

    Sample Output

    5.336 4.330 1.334
    185.988 132.594 296.357

    Source

    样例输入

    2.0 3.0 6.0
    5.0 5.0 5.0
    3.14
    100.0 200.0 300.0
    500.0 600.0 700.0
    1.25

    样例输出

    5.336 4.330 1.334
    185.988 132.594 296.357

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部