@KangarooLove
Solo leveling
Nothing here yet.
Nothing here yet.
Jun 18, 2023 · 2 min read · Thinking If we want to achieve this effect, we need to understand the mathematical model. When we zoom in, the object won't change its size. Actually, It's our camera getting closer to the object. In other words, what we can see becomes smaller. Defa...
Join discussion
Jun 17, 2023 · 1 min read · Let's look at matrix multiplication first vtkNew<vtkTransform> transformA; transformA->Translate(10, 0, 0); std::cout<<"matrixA="<<std::endl<<*transformA->GetMatrix()<<std::endl; vtkNew<vtkTransform> transformB; transformB->RotateZ(90); std::cout<<"...
Join discussion
Apr 24, 2023 · 1 min read · Method 1(index-based iteration) std::vector<int> v = { 1, 2, 3, 4, 5}; for (size_t i = 0; i < v.size(); ++i) { std::cout << v[i]; } Method 2(range-for loop) std::vector<int> v = { 1, 2, 3, 4, 5}; for (const int& i : v) // Access by const referen...
Join discussion
Mar 23, 2023 · 1 min read · Preface There are two forms of enumeration in C++, enum and enum class. Enum is the pre-c++11 syntax, which means it is an unscoped enumeration. The enum class was introduced in C++11 and provides a scoped enumeration Unscoped enumerations // A.h enu...
Join discussion