Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / shortestAngle

Function: shortestAngle() ​

ts
function shortestAngle(from, to): number;

Defined in: camera/damping.ts:21

The signed shortest turn from one angle to another, in radians.

Parameters ​

ParameterType
fromnumber
tonumber

Returns ​

number