{"id":62233,"library":"gz-math","title":"Gazebo Math","description":"Math API for robotic applications","status":"active","version":"8.2.1","language":"cpp","source_language":null,"source_url":null,"tags":["robotics","math","geometry","gazebo"],"install":[{"cmd":"vcpkg install gz-math","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(gz_math CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE gz-math8::gz-math8)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"gz/math.hh","correct":"#include <gz/math.hh>"}],"quickstart":{"code":"#include <gz/math.hh>\n#include <iostream>\n\nint main() {\n    gz::math::Vector3d v(1.0, 2.0, 3.0);\n    std::cout << \"Vector: \" << v << \"\\n\";\n    std::cout << \"Length: \" << v.Length() << \"\\n\";\n    return 0;\n}","lang":"cpp","description":"Use vector math from Gazebo Math"},"warnings":[{"fix":"Use find_package(gz-math8 REQUIRED) and link to gz-math8::gz-math8","message":"Versioned CMake target (gz-math8) depends on major version","severity":"gotcha","affected_versions":">=8.0.0"}],"env_vars":null,"search_vec":"'api':4 'applic':7 'gazebo':1,11 'geometri':10 'math':2,3,9 'robot':6,8","created_at":"2026-06-17T05:21:27.636989+00:00","updated_at":"2026-06-17T05:21:27.636989+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}