Longitude / Latitude to quaternion
I've got a longitude and latitude and want to convert this to a quaternion and wondering how I can do this? I want to use this, because I've got an app which projects the earth on a sphere and I want to rotate from one location to another one. Best! There's a way to go about this without using matrices or vectors, similar to this numpy implementation . We can think of longitude/latitude as two quaternion rotations composed together. Let's work with a Z-up right-handed coordinate system. Let's call longitude φ and latitude θ, and the point represented by the two as (φ, θ). For visualization,