?? tiny2.cpp
字號:
#define BZ_DISABLE_KCC_COPY_PROPAGATION_KLUDGE#include <blitz/tinyvec-et.h>using namespace blitz;typedef TinyVector<double,3> vec;inline void reflect(vec& reflection, const vec& incident, const vec& surfaceNormal){ // The surface normal must be unit length to use this equation. reflection = incident - 2 * dot(incident,surfaceNormal) * surfaceNormal;}template<typename T>void optimizationSink(T&);void foo(TinyVector<double,3>& x){ TinyVector<double,3> y, z; y = 1.00, 0.40, -1.00; z = 0.31, 0.20, 0.93; reflect(x, y, z);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -