我在下面写了一个函数:
void trans(double x,double y,double theta,double m,double n)
{
m=cos(theta)*x+sin(theta)*y;
n=-sin(theta)*x+cos(theta)*y;
}
Run Code Online (Sandbox Code Playgroud)
如果我在同一个文件中调用它们
trans(center_x,center_y,angle,xc,yc);
Run Code Online (Sandbox Code Playgroud)
会的价值xc和yc改变?如果没有,我该怎么办?
c++ ×1