You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > SinCos Method > Vector.SinCos Method (TMtxVec, TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.SinCos Method (TMtxVec, TMtxVec)

Sine and cosine.

Pascal
procedure SinCos(SinX: TMtxVec; CosX: TMtxVec); overload;

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.

Use this method if you require both sine and cosine.

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