📄 rotvector.c
字号:
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved. *//* Copyright (c) Colorado School of Mines, 1999.*//* All rights reserved. */#include "par.h"void rotvector (float *x, float *z, float si, float co )/*****************************************************************************Rotate 2-D vector******************************************************************************Input:x,z input/output vector elementssi/co sin/cos of rotation angleAuthor: Andreas Rueger, Colorado School of Mines, 03/14/94******************************************************************************/{ float o,p; o=*x; p=*z; *x=o*co + p*si; *z=p*co - o*si;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -