Rotate 3JS axis

I have a coordinate system, where I know the origin and direction vector along X-axis and Y-axis and where Z-axis is always up. I want to map this coordinate system with 3JS coordinate system. Because:

  1. I have some points in that coordinate system, that I want to plot in 3JS scene.

How can I achieve this? Sorry If I am not clear.


Just swap coordinates (x,y,z) → (x,z,y) or (y,z,x). You may need to add translation if the origin is not (0,0,0).

– Pavel