{"id":15722511,"url":"https://github.com/thinknathan/def-setv","last_synced_at":"2026-02-27T17:40:22.532Z","repository":{"id":218303909,"uuid":"746101493","full_name":"thinknathan/def-setv","owner":"thinknathan","description":"Defold native extension that combines two math libraries that avoid allocations","archived":false,"fork":false,"pushed_at":"2026-02-21T06:34:36.000Z","size":231,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T13:43:39.106Z","etag":null,"topics":["defold","defold-extension","defold-game-engine","defold-library","defold-native-extension","gamedev"],"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/thinknathan.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":"2024-01-21T03:48:00.000Z","updated_at":"2026-02-21T06:34:34.000Z","dependencies_parsed_at":"2024-03-04T00:24:58.642Z","dependency_job_id":"28298b7e-5c30-40b0-8f08-86e4c6710159","html_url":"https://github.com/thinknathan/def-setv","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.37209302325581395","last_synced_commit":"4733b97994e9c181641569f730d2bbb7bf1ece27"},"previous_names":["thinknathan/def-setv"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thinknathan/def-setv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdef-setv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdef-setv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdef-setv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdef-setv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinknathan","download_url":"https://codeload.github.com/thinknathan/def-setv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdef-setv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29906526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T17:28:36.873Z","status":"ssl_error","status_checked_at":"2026-02-27T17:28:20.970Z","response_time":57,"last_error":"SSL_read: 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":["defold","defold-extension","defold-game-engine","defold-library","defold-native-extension","gamedev"],"created_at":"2024-10-03T22:08:14.450Z","updated_at":"2026-02-27T17:40:22.493Z","avatar_url":"https://github.com/thinknathan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"_docs/def-setv.png\" alt=\"Def-Setv\"\u003e\n\n# SetV for Defold\n\n[![Build with bob](https://github.com/thinknathan/def-setv/actions/workflows/bob.yml/badge.svg)](https://github.com/thinknathan/def-setv/actions/workflows/bob.yml) ![GitHub License](https://img.shields.io/github/license/thinknathan/def-setv)\n\nA Defold native extension that combines the math functions that avoid allocations from [Justin Walsh's xmath](https://github.com/thejustinwalsh/defold-xmath) and [Indiesoft LLC's defold-scene3d](https://github.com/indiesoftby/defold-scene3d).\n\nAll functions take an output vector (or quaternion, or matrix) as their first argument, and change the vector's values in place instead of allocating a new vector.\n\n## Provided Functions\n\n- setv.get_position\n- setv.get_world_position\n- setv.get_rotation\n- setv.get_world_rotation\n- setv.get_scale\n- setv.get_world_scale\n- setv.world_to_local_position\n- setv.world_to_local_transform\n- setv.add\n- setv.sub\n- setv.mul\n- setv.div\n- setv.cross\n- setv.mul_per_elem\n- setv.normalize\n- setv.rotate\n- setv.vector\n- setv.quat_conj\n- setv.quat_axis_angle\n- setv.quat_basis\n- setv.quat_from_to\n- setv.quat_rotation_x\n- setv.quat_rotation_y\n- setv.quat_rotation_z\n- setv.quat\n- setv.lerp\n- setv.slerp\n- setv.matrix_axis_angle\n- setv.matrix_from_quat\n- setv.matrix_frustum\n- setv.matrix_inv\n- setv.matrix_look_at\n- setv.matrix_orthographic\n- setv.matrix_ortho_inv\n- setv.matrix_perspective\n- setv.matrix_rotation_x\n- setv.matrix_rotation_y\n- setv.matrix_rotation_z\n- setv.matrix_translation\n- setv.matrix\n\n## Installation\n\n1. Edit game.project\n2. Add dependency `https://github.com/thinknathan/def-setv/archive/main.zip` for the current version\n   - Or add a specific [release](https://github.com/thinknathan/def-setv/releases)\n\n### TypeScript Definitions\n\nThis extension includes types for use with [TypeScript + Defold](https://ts-defold.dev/).\n\n1. Install these types\n\n```bash\nyarn add git+https://git@github.com/thinknathan/def-setv.git#^1.0.0 -D\n# or\nnpm install git+https://git@github.com/thinknathan/def-setv.git#^1.0.0 --save-dev\n```\n\n2. Add `def-setv` to `types` in `tsconfig.json`\n\n```diff\n{\n\t\"compilerOptions\": {\n\t\t\"types\": [\n+\t\t\t\"def-setv\",\n\t\t],\n\t}\n}\n```\n\n3. Add `node_modules/@types` to `typeRoots` in `tsconfig.json` if it's not already there\n\n```diff\n{\n\t\"compilerOptions\": {\n\t\t\"typeRoots\": [\n+\t\t\t\"node_modules/@types\",\n\t\t],\n\t}\n}\n```\n\n## License\n\nMIT\n\nComments are adapted from [Defold's](https://github.com/defold/) code comments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fdef-setv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinknathan%2Fdef-setv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fdef-setv/lists"}