Pro.ID21784 Title旋转 Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21784 AC8 Submit11 Ratio72.73% 时间&空间限制描述求空间中一个点绕一穿过原点的轴线旋转一定角度后的坐标,沿着旋转轴往原点看旋转的角度为顺时针。(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 Sample Output 5.336 4.330 1.334 Source 样例输入2.0 3.0 6.0 样例输出5.336 4.330 1.334 作者 |