You are here: Symbol Reference > Math387 Namespace > Functions > Math387.FixAngle Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.FixAngle Function

Sets angle in [-2Pi,2Pi].

Pascal
function FixAngle(const ThetaRad: double): double; overload;

Returns ThetaRad within [-2Pi,2Pi] interval.

Calling this function prior to passing the value to trigonometric functions can significantly improve numerical accuracy.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!