Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void SinCos(TMtxVec SinX, TMtxVec CosX) | Sine and cosine. |
| 2 | void SinCos(TMtxVec SinX, TMtxVec CosX, Int32 SinXIndex, Int32 CosXIndex, Int32 Index, Int32 Len) | Calculates the sine and cosine for calling object elements [Index]..[Index+Len-1]. |
Overload 1: void SinCos(TMtxVec SinX, TMtxVec CosX)
Sine and cosine.
Result: stored in self (calling object)
Calculates the sine and cosine for all calling object elements and stores the sines to SinX and cosines to CosX. Size and Dew.Math.TMtxVec.Complex property of SinX and CosX are adjusted automatically.
Note
Use this method if you require both sine and cosine.
Matrix a;
Matrix s;
Matrix c;
a.SetIt(1,3,false[0,PIDIV2,PI]);
a.Sincos(s,c); // s=new double[] {0,1,0}, c =new double[] {1,0,-1}
Overload 2: void SinCos(TMtxVec SinX, TMtxVec CosX, Int32 SinXIndex, Int32 CosXIndex, Int32 Index, Int32 Len)
Calculates the sine and cosine for calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SinX | TMtxVec | source TVec or TMtx |
| 2 | CosX | TMtxVec | source TVec or TMtx |
| 3 | SinXIndex | Int32 | |
| 4 | CosXIndex | Int32 | |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object)
stores the sines to SinX elements [SinXIndex]..[SinXIndex+Len-1] and cosines to CosX elements [CosXIndex]..[CosXIndex+Len-1] elements. Size and Dew.Math.TMtxVec.Complex property of SinX and CosX objects are not set automatically. An exception is raised if Dew.Math.TMtxVecBase.ConditionCheck and array borders are overrun/underun.