RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.SinCos Function

Returns sine and cosine of an angle.

Pascal
procedure SinCos(const Theta: Extended; var Sin: Extended; var Cos: Extended);
C++
SinCos(const Extended Theta, Extended Sin, Extended Cos);

Call SinCos to obtain the sine and cosine of an angle expressed in radians. Theta specifies the angle. The sine and cosine are returned in the Sin and Cos parameters, respectively. 

SinCos is twice as fast as calling Sin and Cos separately for the same angle. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!