You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > SinCos Method > Matrix.SinCos Method (TMtxVec, TMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.SinCos Method (TMtxVec, TMtxVec)

Sine and cosine.

Syntax
C#
Visual Basic
public void SinCos(TMtxVec SinX, TMtxVec CosX);

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.

var a,s,c: Matrix; begin a.SetIt(1,3,false[0,PIDIV2,PI]); a.Sincos(s,c); // s=[0,1,0], c =[1,0,-1] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!