Dew MtxVec NET
TMtxVec.SinCos Methods
Summary
Sine and cosine.

Class
TMtxVec

Declaration
Procedure SinCos(SinX, CosX: TMtxVec; SinXIndex, CosXIndex, Index, Len: integer);

Description
Calculates the sine and cosine for calling object elements [Index]..[Index+Len-1] and stores the sines to SinX elemets [SinXIndex]..[SinXIndex+Len-1] and cosines to CosX elements [CosXIndex]..[CosXIndex+Len-1] elements. Size and Complex property of SinX and CosX objects are not set automatically. An exception is raised if ConditionCheck and array borders are overrun/underun.
Declaration
Procedure SinCos(SinX, CosX: TMtxVec);

Description

Calculates the sine and cosine for all calling object elements and stores the sines to SinX and cosines to CosX. Size and Complex property of SinX and CosX are adjusted automatically.

Note: Use this method if you require both sine and cosine.
 See Also 
Sin 
Cos 

Example 1

var a: TVec; s,c: TVec; begin CreateIt(a,s,c); try a.SetIt(false[0,PiDiv2,Pi]); a.Sincos(s,c); // s=[0,1,0], c =[1,0,-1] finally FreeIt(a,s,c); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com