Table of Contents

Method LerpDegrees

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

LerpDegrees(double, double, double)

Linearly interpolates between two angles (degrees) along the shortest arc.

public static double LerpDegrees(double a, double b, double t)

Parameters

a double

Start angle in degrees.

b double

End angle in degrees.

t double

Interpolation factor in [0,1]. Values outside this range extrapolate.

Returns

double

Interpolated angle in degrees, normalized to [0, 360).