toR property Null safety
final
Implementation
static final NormalOperation toR = NormalOperation.floatOnly(
floatCalc: (Model m) {
double r = m.xF;
double theta = m.yF;
m.resultXF = r * dart.cos(theta * m.trigMode.scaleFactor);
m.yF = r * dart.sin(theta * m.trigMode.scaleFactor);
},
complexCalc: (Model m) {
Complex v = m.xC;
m.resultXC = Complex(
v.real * dart.cos(v.imaginary * m.trigMode.scaleFactor),
v.real * dart.sin(v.imaginary * m.trigMode.scaleFactor));
},
name: '->R');