{"id":20778020,"url":"https://github.com/stackgl/gl-vec4","last_synced_at":"2026-02-05T15:32:30.246Z","repository":{"id":32045564,"uuid":"35617102","full_name":"stackgl/gl-vec4","owner":"stackgl","description":"gl-matrix's vec4, split into smaller pieces","archived":false,"fork":false,"pushed_at":"2018-02-08T18:12:35.000Z","size":16,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-19T15:50:38.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","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-05-14T14:52:25.000Z","updated_at":"2024-12-20T20:31:49.000Z","dependencies_parsed_at":"2022-09-13T21:13:29.227Z","dependency_job_id":null,"html_url":"https://github.com/stackgl/gl-vec4","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stackgl/gl-vec4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-vec4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-vec4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-vec4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-vec4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackgl","download_url":"https://codeload.github.com/stackgl/gl-vec4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-vec4/sbom","scorecard":{"id":845388,"data":{"date":"2025-08-11","repo":{"name":"github.com/stackgl/gl-vec4","commit":"23449f51b38fd8cb543ccf585a8bca0009a8420b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: zlib License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T21:18:14.978Z","repository_id":32045564,"created_at":"2025-08-23T21:18:14.978Z","updated_at":"2025-08-23T21:18:14.978Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29124801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"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":[],"created_at":"2024-11-17T13:18:40.885Z","updated_at":"2026-02-05T15:32:30.228Z","avatar_url":"https://github.com/stackgl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gl-vec4\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nPart of a fork of [@toji](http://github.com/toji)'s\n[gl-matrix](http://github.com/toji/gl-matrix) split into smaller pieces: this\npackage contains `glMatrix.vec4`.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/gl-vec4.png)](https://nodei.co/npm/gl-vec4/)\n\n### `vec4 = require('gl-vec4')`\n\nWill load all of the module's functionality and expose it on a single\nobject. Note that any of the methods may also be required directly\nfrom their files.\n\nFor example, the following are equivalent:\n\n``` javascript\nvar scale = require('gl-vec4').scale\nvar scale = require('gl-vec4/scale')\n```\n\n## API\n\n  - [add()](#addoutvec4-avec4-bvec4)\n  - [clone()](#cloneavec4)\n  - [copy()](#copyoutvec4-avec4)\n  - [create()](#create)\n  - [distance()](#distanceavec4-bvec4)\n  - [divide()](#divideoutvec4-avec4-bvec4)\n  - [dot()](#dotavec4-bvec4)\n  - [fromValues()](#fromvaluesxnumber-ynumber-znumber-wnumber)\n  - [inverse()](#inverseoutvec4-avec4)\n  - [length()](#lengthavec4)\n  - [lerp()](#lerpoutvec4-avec4-bvec4-tnumber)\n  - [max()](#maxoutvec4-avec4-bvec4)\n  - [min()](#minoutvec4-avec4-bvec4)\n  - [multiply()](#multiplyoutvec4-avec4-bvec4)\n  - [negate()](#negateoutvec4-avec4)\n  - [normalize()](#normalizeoutvec4-avec4)\n  - [random()](#randomoutvec4-scalenumber)\n  - [scale()](#scaleoutvec4-avec4-bnumber)\n  - [scaleAndAdd()](#scaleandaddoutvec4-avec4-bvec4-scalenumber)\n  - [set()](#setoutvec4-xnumber-ynumber-znumber-wnumber)\n  - [squaredDistance()](#squareddistanceavec4-bvec4)\n  - [squaredLength()](#squaredlengthavec4)\n  - [subtract()](#subtractoutvec4-avec4-bvec4)\n  - [transformMat4()](#transformmat4outvec4-avec4-mmat4)\n  - [transformQuat()](#transformquatoutvec4-avec4-qquat)\n\n## add(out:vec4, a:vec4, b:vec4)\n\n  Adds two vec4's\n\n## clone(a:vec4)\n\n  Creates a new vec4 initialized with values from an existing vector\n\n## copy(out:vec4, a:vec4)\n\n  Copy the values from one vec4 to another\n\n## create()\n\n  Creates a new, empty vec4\n\n## distance(a:vec4, b:vec4)\n\n  Calculates the euclidian distance between two vec4's\n\n## divide(out:vec4, a:vec4, b:vec4)\n\n  Divides two vec4's\n\n## dot(a:vec4, b:vec4)\n\n  Calculates the dot product of two vec4's\n\n## fromValues(x:Number, y:Number, z:Number, w:Number)\n\n  Creates a new vec4 initialized with the given values\n\n## inverse(out:vec4, a:vec4)\n\n  Returns the inverse of the components of a vec4\n\n## length(a:vec4)\n\n  Calculates the length of a vec4\n\n## lerp(out:vec4, a:vec4, b:vec4, t:Number)\n\n  Performs a linear interpolation between two vec4's\n\n## max(out:vec4, a:vec4, b:vec4)\n\n  Returns the maximum of two vec4's\n\n## min(out:vec4, a:vec4, b:vec4)\n\n  Returns the minimum of two vec4's\n\n## multiply(out:vec4, a:vec4, b:vec4)\n\n  Multiplies two vec4's\n\n## negate(out:vec4, a:vec4)\n\n  Negates the components of a vec4\n\n## normalize(out:vec4, a:vec4)\n\n  Normalize a vec4\n\n## random(out:vec4, [scale]:Number)\n\n  Generates a random vector with the given scale\n\n## scale(out:vec4, a:vec4, b:Number)\n\n  Scales a vec4 by a scalar number\n\n## scaleAndAdd(out:vec4, a:vec4, b:vec4, scale:Number)\n\n  Adds two vec4's after scaling the second operand by a scalar value\n\n## set(out:vec4, x:Number, y:Number, z:Number, w:Number)\n\n  Set the components of a vec4 to the given values\n\n## squaredDistance(a:vec4, b:vec4)\n\n  Calculates the squared euclidian distance between two vec4's\n\n## squaredLength(a:vec4)\n\n  Calculates the squared length of a vec4\n\n## subtract(out:vec4, a:vec4, b:vec4)\n\n  Subtracts vector b from vector a\n\n## transformMat4(out:vec4, a:vec4, m:mat4)\n\n  Transforms the vec4 with a mat4.\n\n## transformQuat(out:vec4, a:vec4, q:quat)\n\n  Transforms the vec4 with a quat\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/stackgl/gl-vec4/blob/master/LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fgl-vec4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackgl%2Fgl-vec4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fgl-vec4/lists"}