{"id":20778127,"url":"https://github.com/stackgl/lookat-camera","last_synced_at":"2025-07-04T13:39:00.279Z","repository":{"id":33843092,"uuid":"37545554","full_name":"stackgl/lookat-camera","owner":"stackgl","description":"Simple \"lookat\" camera abstraction built on top of gl-matrix","archived":false,"fork":false,"pushed_at":"2015-06-16T17:34:22.000Z","size":212,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-06-03T02:05:45.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://stack.gl/lookat-camera/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-16T17:34:15.000Z","updated_at":"2022-02-26T17:30:05.000Z","dependencies_parsed_at":"2022-08-17T22:30:07.319Z","dependency_job_id":null,"html_url":"https://github.com/stackgl/lookat-camera","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackgl/lookat-camera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Flookat-camera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Flookat-camera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Flookat-camera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Flookat-camera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackgl","download_url":"https://codeload.github.com/stackgl/lookat-camera/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Flookat-camera/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263550838,"owners_count":23478874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T13:19:23.395Z","updated_at":"2025-07-04T13:39:00.248Z","avatar_url":"https://github.com/stackgl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lookat-camera\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nSimple \"lookat\" camera abstraction built on top of\n[gl-matrix](http://github.com/toji/gl-matrix).\n\n## Usage\n\n[![NPM](https://nodei.co/npm/lookat-camera.png)](https://nodei.co/npm/lookat-camera/)\n\nSee [demo.js](./demo.js) for a usage example.\n\n### `camera = require('lookat-camera')()`\n\nCreates a new camera instance.\n\n### `view = camera.view([view])`\n\nUpdates the view matrix based on the camera's current configuration and\nreturns the result. Optionally, you may pass in your own `view` array to\nmodify directly.\n\n### `camera.position`\n\n`[x, y, z]` vector that determines the position of the camera in world space.\n\n### `camera.target`\n\n`[x, y, z]` vector that determines the target of the camera in world space.\n\n### `camera.up`\n\nNormalized `[x, y, z]` vector that determines the up direction of the camera.\nGenerally you'll want this to be `[1, 0, 0]`, `[0, 1, 0]` or `[0, 0, 1]`.\n\n## Contributing\n\nSee [stackgl/contributing](https://github.com/stackgl/contributing) for details.\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/stackgl/lookat-camera/blob/master/LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Flookat-camera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackgl%2Flookat-camera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Flookat-camera/lists"}