You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > PolarToCart Method > clMatrix.PolarToCart Method (TOpenCLMtxVec, TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
Example
var a,b,c: clMatrix; begin a.CopyFromArray(2,2,TSingleArray.Create(1,2,3,4)); // a = [1,2,3, 4] //magnitude b.CopyFromArray(2,2,TSingleArray.Create(1,0,1,-1)); // b = [1,0,1,-1] /phase c.PolarToCart(a,b); // result stored in c = projections to Re and Im axis end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.