for(const auto& v : vec) { std::cout << "The length of {" << v.x << ", " << v.y << ", " << v.z << "} is " << GetLength(v) << std::endl; }
return 0; }
Output: The length of {5, 0, 0} is 5 The length of {0, 3, 4} is 5
Package/Library: The package/library for this implementation is the GLM library, which is a C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.
C++ (Cpp) Vector3::GetLength - 17 examples found. These are the top rated real world C++ (Cpp) examples of Vector3::GetLength from package spheres extracted from open source projects. You can rate examples to help us improve the quality of examples.