# How to realize a point relative to another point along the XYZ axis rotation

How to realize a point relative to another point along the XYZ axis rotation (a point rotates a specified angle around the center of the sphere).

E.g:

Spherical center matrix

[-0.89573957807316,-0.444579136120125,0,0,-0.3853768627708936,0.7764586333720479,0.498594689405014,0,-0.22166479628976357,0.4466109967171657,-0.8668352413793086,0,-2178215.2529167105,4388675.61043833,4070214.3244728907,1]

The point that needs to be rotated around the center

0: -0.8957149620401404

1: -0.4446287291408755

2: 0

3: 0

4: 0.2852483378251972

5: -0.5746394403726375

6: 0.7670872827365764

7: 0

8: -0.3410690436632913

9: 0.6870915563378669

10: 0.6415427504569089

11: 0

12: -2178478.527253253

13: 4388595.885637572

14: 4070234.906448222

15: 1

Rotation angle

x:101

y: 60

z:30

Can you describe a bit more what you’re trying to do?

If you just have two points, and you want to rotate one relative to the other, I think you’ll need to construct a matrix that translates the point such that the origin becomes your point of reference, rotates, then translates back.

Rotate a point around a vector (or vectors) that go through another point? Without specifying a vector, rotating around point seems ambiguous in 3D (but not in 2D.) Perhaps 101deg around x, 60deg around y, 30deg around z?