mathAngleDifference

Category: Mathematics

Syntax:

mathAngleDifference:Double(angle1:Double, angle2:Double)


Parameters

Returns

Double



Summary

Calculates the shortest angular difference between two angles.

Takes angle1 (first angle in degrees), angle2 (second angle in degrees).

Returns the shortest signed angular distance from angle1 to angle2 in degrees, wrapped to the range [-180, 180].

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn