摘要: ```c++ std::function f = "&" int{ c; //call function //print function address static_cast(&f) return c 阅读全文
posted @ 2018-06-14 17:29 學海無涯 阅读(289) 评论(0) 推荐(0) 编辑
摘要: ``` //指定波长转换成RGBA颜色 std::vector lambdaToColor(double lambda,double gamma = 0.8,double intensityMax = 255.0) { double r, g, b, alpha; if (lambda >= 380.0 && lambda = 440.0 && lambda = 490.0 && ... 阅读全文
posted @ 2018-06-14 09:20 學海無涯 阅读(2985) 评论(0) 推荐(1) 编辑