MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / deg2rad

Function deg2rad

source/matplot/util/common.cpp:378–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 }
377
378 std::vector<double> deg2rad(const std::vector<double> &degrees) {
379 std::vector<double> rad(degrees.size());
380 for (size_t i = 0; i < degrees.size(); ++i) {
381 rad[i] = pi * degrees[i] / 180;
382 }
383 return rad;
384 }
385
386 double deg2rad(double rho) { return rho * 180. / pi; }
387

Callers 3

data_stringMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected