wrapToPi

Wrap angle in radians to [−pi pi]

Syntax

lambdaWrapped = wrapToPi(lambda)

Description

lambdaWrapped = wrapToPi(lambda) wraps angles in lambda, in radians, to the interval [−pi pi]. pi maps to pi and −pi maps to −pi. (In general, odd, positive multiples of pi map to pi and odd, negative multiples of pi map to −pi.)

Was this topic helpful?