You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > FixAngle Method > clMatrix.FixAngle Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.FixAngle Method ()

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

Syntax
C#
Visual Basic
public TOpenCLMtxVec FixAngle();

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. 

Note The vector must be real.

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