reactphysics3d/testbed/nanogui/ext/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp

3 lines
50 B
C++

Vector3d v(1,2,4);
cout << v.cwiseSqrt() << endl;