{"id":16126827,"url":"https://github.com/mikolalysenko/box-frustum","last_synced_at":"2025-03-18T13:31:51.954Z","repository":{"id":6865198,"uuid":"8114110","full_name":"mikolalysenko/box-frustum","owner":"mikolalysenko","description":"A function to test if an axis aligned bounding box interesects the camera frustum.","archived":false,"fork":false,"pushed_at":"2013-02-09T20:20:43.000Z","size":112,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T20:51:15.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikolalysenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-09T19:47:07.000Z","updated_at":"2024-06-19T19:20:13.000Z","dependencies_parsed_at":"2022-09-18T10:52:00.872Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/box-frustum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fbox-frustum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fbox-frustum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fbox-frustum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Fbox-frustum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/box-frustum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244231494,"owners_count":20419959,"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-10-09T21:40:34.269Z","updated_at":"2025-03-18T13:31:51.690Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"box-frustum\n===========\nA function to test if an axis aligned bounding box interesects the camera frustum.\n\nUsage/Installation\n==================\nFirst, pull this in via npm:\n\n    npm install box-frustum\n    \nThen you can do a frustum test like this:\n\n    require(\"box-frustum\")(\n      [1, 0, 0, 0,\n       0, 1, 0, 0,\n       0, 0, 1, 0,\n       0, 0, 0, 1],\n      [[-1,-1,-1], [1,1,1]])\n      \nWhich will check if axis-aligned bounding box from (-1,-1,-1) to (1,1,1) intersects the frustum for the unit matrix.\n\n`require(\"box-frustum\")(m, box)`\n--------------------------------\nmodule.exports implements the frustum test. It takes two arguments:\n\n* `m` is an array of 16 float values representing the homogeneous clip coordinate matrix for the camera in row major order.\n* `box = [lo, hi]` is an array of two length 3 arrays giving the bounds for the axis aligned bounding.\n\nResults: true if the box intersects the camera frustum, flase otherwise.\n\n\nCredits\n=======\n(c) 2013 Mikola Lysenko. BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fbox-frustum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Fbox-frustum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Fbox-frustum/lists"}