@qbead/bloch-sphere
@qbead/bloch-sphere / shortestModDist
shortestModDist(a0, a1, modulo): number
a0
a1
modulo
number
Defined in: src/math/geometry.ts:106arrow-up-right
Computes the shortest distance between two angles, considering wrap-around
The first angle
The second angle
The modulo value (e.g., 2π for radians)
The shortest distance from a0 to a1
Last updated 24 days ago