{"id":48960784,"url":"https://github.com/starlet-engine/math","last_synced_at":"2026-05-15T13:01:55.480Z","repository":{"id":312199916,"uuid":"1045990497","full_name":"starlet-engine/math","owner":"starlet-engine","description":"Lightweight header-only math library for Starlet projects","archived":false,"fork":false,"pushed_at":"2026-03-10T22:34:08.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T01:42:11.735Z","etag":null,"topics":["cmake","cpp","header-only","math","meson","opengl","starlet","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starlet-engine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-28T02:59:20.000Z","updated_at":"2026-03-11T04:29:56.000Z","dependencies_parsed_at":"2025-08-29T07:31:42.207Z","dependency_job_id":"8a82d5c6-bde0-4c11-9b8c-f086156c9df2","html_url":"https://github.com/starlet-engine/math","commit_stats":null,"previous_names":["masonlet/starletmath","masonlet/starlet-math","starlet-engine/math"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/starlet-engine/math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlet-engine%2Fmath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlet-engine%2Fmath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlet-engine%2Fmath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlet-engine%2Fmath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starlet-engine","download_url":"https://codeload.github.com/starlet-engine/math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starlet-engine%2Fmath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp","header-only","math","meson","opengl","starlet","unit-testing"],"created_at":"2026-04-18T01:42:00.123Z","updated_at":"2026-05-15T13:01:55.451Z","avatar_url":"https://github.com/starlet-engine.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starlet Math\n\n[![Tests](https://github.com/starlet-engine/math/actions/workflows/tests.yml/badge.svg)](https://github.com/starlet-engine/math/actions/workflows/tests.yml)\n[![C++20](https://img.shields.io/badge/C%2B%2B-20-blue.svg)](https://isocpp.org/std/the-standard)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)\n\nA lightweight header-only math library for **Starlet** projects.\n\n⚠️ **Note**\nThis is **NOT** intended to be a complete math library!\nIt's minimal and straightforward to make the math operations easier to understand and extend.\nThis makes it perfect for learning, experimentation, but not a drop-in replacement for full-fledged math libraries.\n\n## Features\n\n- Basic vector types: `Vec2`, `Vec3`, `Vec4`\n- `Transform` struct for position, rotation, scale\n- `Mat4` 4x4 matrix with:\n    - Identity, transpose, inverse\n    - Translation, rotation, scaling\n    - `lookAt` and `perspective` helpers\n    - Composition with `Transform`\n- Constants and helpers:\n    `pi`, `radians()`, `degrees()`\n- **Starlet** Project Constants\n\n## Prerequisites\n- C++20 or later\n- One of the following Build Systems,\n    - CMake 3.20+\n    - Meson 1.1+\n\n## Using as a Dependency\n\n### CMake\n```cmake\ninclude(FetchContent)\n\nFetchContent_Declare(starlet_math\n  GIT_REPOSITORY https://github.com/starlet-engine/math.git \n  GIT_TAG main\n)\nFetchContent_MakeAvailable(starlet_math)\n\ntarget_link_libraries(app_name PRIVATE starlet_math)\n```\n\n### Meson\n\u003e **Note:** Meson does not fetch dependencies automatically. Add the [`starlet_math.wrap`](./subprojects/starlet_math.wrap) file to your project's `subprojects` directory.\n\nIn your `meson.build`:\n\n```python\nstarlet_math = subproject('starlet_math')\nstarlet_math_dep = starlet_math.get_variable('starlet_math_dep')\nexecutable('app_name', 'main.cpp', dependencies: starlet_math_dep)\n```\n\n## Building and Testing\n```bash\n# 1. Clone starlet-math\ngit clone https://github.com/starlet-engine/math.git\ncd starlet-math\n```\n\n### CMake\n```bash\ncmake -B build -DBUILD_TESTS=ON\ncmake --build build\nctest --test-dir build\n```\n\n### Meson\n```bash\nmeson setup build -Dbuild_tests=true\nmeson compile -C build\nmeson test -C build\n```\n\n## License\nMIT License — see [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlet-engine%2Fmath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarlet-engine%2Fmath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarlet-engine%2Fmath/lists"}