You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > FixAngle Method > TOpenCLMtxVec.FixAngle Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.FixAngle Method ()

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

Pascal
function FixAngle: TOpenCLMtxVec; overload;

ThetaRad within -2Math387.PI and Math387.PI interval.

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

Sine/cosine appear within many other functions especially complex versions of trigonometric functions. FixAngle method is not used implicitely within TOpenCLMtxVec methods. To achieve maximum performance make sure that the arguments passed to complex trigonometric functions are "small" or scaled down.

The vector must be real.

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