Rotation of a point about the z-axis
问题 I have 3 vectors in 3D space. Let's call them xaxis , yaxis , and zaxis . These vectors are centered about an arbitrary point somewhere in 3D space. I am interested in rotating the xaxis and yaxis vectors about the zaxis vector a number of degrees θ . For the following code with values being arbitrary and unimportant: double xaxis[3], yaxis[3], zaxis[3], point[3], theta; How would I go about rotating xaxis and yaxis about the zaxis by theta degrees? Future Note: These attempts do not work.