threejs-math is just the math stuff from three exported on their own. Includes all the primitives you're asking about (and more) with methods, and also a good set of utility functions under MathUtils. https://ros2jsguy.github.io/threejs-math Answer from Aeverous on reddit.com
🌐
Duke University
sites.math.duke.edu › ~jdr › linalg_js › doc › vector.js.html
vector.js
Instead use the convenience routine * {@link Vector.create}. * * @example * Vector.create(1, 2, 3).toString(1); // "[1.0 2.0 3.0]" * * @extends Array */ class Vector extends Array { /** * @summary * Create a Vector with the given entries.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array
Array - JavaScript | MDN
February 24, 2026 - All built-in array-copy operations (spread syntax, Array.from(), Array.prototype.slice(), and Array.prototype.concat()) create shallow copies. If you instead want a deep copy of an array, you can use JSON.stringify() to convert the array to a JSON string, and then JSON.parse() to convert the string back into a new array that's completely independent from the original array.
Discussions

[AskJS] Good quality geometry, vector, etc library?
threejs-math is just the math stuff from three exported on their own. Includes all the primitives you're asking about (and more) with methods, and also a good set of utility functions under MathUtils. https://ros2jsguy.github.io/threejs-math More on reddit.com
🌐 r/javascript
10
13
April 7, 2023
Vector.js: an open source JavaScript library for creating interactive graphics
Vector.js looks like it's maintained by a small team of university students as their capstone project. That's a cool thing to produce for a school project, for sure, but are there compelling reasons for other users to choose this lib in particular · Just to share some findings... at work we ... More on news.ycombinator.com
🌐 news.ycombinator.com
9
55
June 12, 2022
arrays - A Vector Class in Javascript - Stack Overflow
Perhaps it is simpler to extend javascript's native Array, so that there is no need for keeping around an extra Vector.arr property. Here is a simple implementation called for learning purposes that boils down to this, in modern JS: More on stackoverflow.com
🌐 stackoverflow.com
Vectra: a fast and free local vector database for JavaScript/TypeScript
Vectra is a vector database, similar to pinecone, that uses local files to store the index and items. Supports most of the features of pinecone, including metadata filtering. More on community.openai.com
🌐 community.openai.com
0
6
May 1, 2023
🌐
npm
npmjs.com › package › @glazier › vector-js
@glazier/vector-js - npm
An implementation of mathematical vectors in JavaScript. Latest version: 1.2.1, last published: 6 years ago. Start using @glazier/vector-js in your project by running `npm i @glazier/vector-js`. There are no other projects in the npm registry ...
      » npm install @glazier/vector-js
    
Published   Sep 04, 2019
Version   1.2.1
🌐
Freepik
freepik.com › vectors › javascript
Javascript Vectors - Download Free High-Quality Vectors from Freepik | Freepik
Download the most popular free Javascript vectors from Freepik. Explore AI-generated vectors and stock vectors, and take your projects to the next level with high-quality assets!
🌐
Starbeamrainbowlabs
starbeamrainbowlabs.com › blog › article.php
Vector.js: A simple vector class in ES6 | Stardust | Starbeamrainbowlabs
February 1, 2018 - var v = new Vector(100, 100), // Create a new vector for the point (100, 100) v2 = new Vector(300, 400); // Vector for the point (300, 400) // Clone v and subtracts v2 from it, putting the result into v3.
Find elsewhere
🌐
EDUCBA
educba.com › home › software development › software development tutorials › javascript tutorial › vectors in javascript
Vectors in JavaScript | Learn How a vector can be created in JavaScript?
March 27, 2023 - Guide to Vectors in JavaScript. Here we discuss the introduction, various examples and why vectors are used in JavaScript respectively.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Js
two.js.org
Two.js • Homepage
Two.js features a Scalable Vector Graphics (opens new window) Interpreter. This means developers and designers alike can create SVG elements in commercial applications like Adobe Illustrator (opens new window) and bring them into your two.js scene.
🌐
GitHub
github.com › lsauer › vector-js
GitHub - lsauer/vector-js: Operators for vectors or other JavaScript objects, just as you are used to. See it in action:
vector.js is a small module to facilitate limited 3D vector arithmetics based on unsigned 8 bit integers (UInt8).
Author   lsauer
🌐
Pragmatic Bookshelf
pragprog.com › titles › bgvector › vector-search-with-javascript
Vector Search with JavaScript: Build Intelligent Search Systems with AI by Ben Greenberg
Implement vector search from the ground up with step-by-step guidance, real-world examples, and hands-on coding. Generate embeddings, construct vector indexes, and optimize search accuracy with practical methods that integrate seamlessly into JavaScript applications.
🌐
p5.js
p5js.org › reference › p5 › createVector
createVector
A vector's components determine its magnitude and direction. For example, calling createVector(3, 4) creates a new p5.Vector object with an x-component of 3 and a y-component of 4.
🌐
Victorjs
victorjs.org
Victor.js - 2D Vectors for JavaScript
A JavaScript 2D vector maths library for Node.js and the browser.
🌐
Radzion
radzion.com › blog › linear-algebra › vectors
Vectors and Vectors Operations With JavaScript - Radzion.com
May 3, 2019 - If we take the dot product of two normalized vectors and the result is equal to one it means that they have the same direction. To compare two float numbers, we will use the areEqual function. have-same-direction-with.js · const EPSILON = 0.00000001 const areEqual = (one, other, epsilon = EPSILON) => Math.abs(one - other) < epsilon class Vector { constructor(...components) { this.components = components } // ...
🌐
GitHub
github.com › vector-js › vector
GitHub - vector-js/vector: A javascript library for creating interactive graphics. · GitHub
May 7, 2024 - Vector.js is a Javascript library for creating interactive graphics on the web. The library uses the existing web standards: HTML, SVG, and CSS and has no dependencies.
Starred by 199 users
Forked by 19 users
Languages   JavaScript 68.1% | TypeScript 30.3%
🌐
Hacker News
news.ycombinator.com › item
Vector.js: an open source JavaScript library for creating interactive graphics | Hacker News
June 12, 2022 - Vector.js looks like it's maintained by a small team of university students as their capstone project. That's a cool thing to produce for a school project, for sure, but are there compelling reasons for other users to choose this lib in particular · Just to share some findings... at work we ...
🌐
Brm
brm.io › matter-js › docs › classes › Vector.html
Matter.Vector Module - Matter.js Physics Engine API Docs - matter-js 0.20.0
src/geometry/Vector.js:40 · Usages · Examples · (vector) → Number · Returns the magnitude (length) of a vector (therefore saving a sqrt operation). vector Vector · Number · The squared magnitude of the vector · src/geometry/Vector.js:50 · Usages · Examples ·
🌐
Paper.js
paperjs.org › tutorials › geometry › vector-geometry
Paper.js — Vector Geometry
Rotating vectors is a powerful tool for constructing paths and shapes, as it allows us to define a relative direction at a certain angle rotated away from another direction, for example sideways. The Working with Mouse Vectors tutorial shows a good example of this, where rotated vectors are used to construct paths in parallel to the direction and position of the moved mouse. All angles in Paper.js are measured in degrees, and are oriented clockwise.
🌐
W3Schools
w3schools.com › ai › ai_vectors.asp
Vectors
ML Intro ML and AI ML Languages ML JavaScript ML Examples ML Linear Graphs ML Scatter Plots ML Perceptrons ML Recognition ML Training ML Testing ML Learning ML Terminology ML Data ML Clustering ML Regressions ML Deep Learning ML Brain.js · TFJS Tutorial TFJS Operations TFJS Models TFJS Visor ... History of Intelligence History of Languages History of Numbers History of Computing History of Robots History of AI Job Replacements Theory of Mind · Mathematics Linear Functions Linear Algebra Vectors Matrices Tensors
🌐
OpenAI Developer Community
community.openai.com › t › vectra-a-fast-and-free-local-vector-database-for-javascript-typescript › 187135
Vectra: a fast and free local vector database for JavaScript/TypeScript - Community - OpenAI Developer Community
May 1, 2023 - Vectra is a vector database, similar to pinecone, that uses local files to store the index and items. Supports most of the features of pinecone, including metadata filtering.