SphericalRotation

Rigid rotation on a unit sphere that takes from to to, applied via Rodrigues' formula.

Preserves angular distances between all rotated points, so dragging a shape by moving its reference position with this transform preserves its geodesic shape — including near the poles where geographic-azimuth-based translations distort.

Constructors

Link copied to clipboard
constructor(from: Location, to: Location)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun apply(pos: Location)

Rotates pos in-place so the geodesic relationship between from and pos is preserved around to.