System.Math.SinCos
Delphi
procedure SinCos(const Theta: Single; var Sin, Cos: Single);
procedure SinCos(const Theta: Double; var Sin, Cos: Double);
procedure SinCos(const Theta: Extended; var Sin, Cos: Extended);
C++
extern DELPHI_PACKAGE void __fastcall SinCos(const float Theta, float &Sin, float &Cos)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Returns sine and cosine of an angle.
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.