![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
flexible-vector
Advanced tools
npm install flexible-vector
flexible vector tooling for typescript and javascript. Supporting numeric component access, iterator protocol and flexible name based access.
import {vector} from 'flexible-vector';
let v1 = vector(1,2,3);
v1[2]; // 3;
v1.get(2); // 3;
use vector2
, vector3
and vector4
to get augmented vectors that have special accessors.
vector2
has x, y and permutations thereof
vector3
has r,g,b and x,y,z and permutations thereof
vector4
has r,g,b,a and x,y,z and permutations thereof
import {vector3} from 'flexible-vector';
let v1 = vector3(1,2,3);
v1.rg; // vector(1,2);
// or even permutations
v1.bgr; // vector(3,2,1);
Setters are also supported, however, we discourage their use. Better to treat vectors as immutable.
let v1 = vector3(1,2,3);
v1[2] = 5;
v1.xy = v1.yz;
v1.z = 6; //vector(2,5,6);
import {vector} from 'flexible-vector';
let v1 = vector(1,2,3);
[...v]; // [1,2,3];
norm
the norm of the vectornormalize
normalize the vector (length to 1 or 0)dot
dot product of two (equal size) vectorsplus
addition of two (equal size) vectorsminus
addition of two (equal size) vectorstimes
multiplication by a scalarequals
check whether a vector equals anotherFAQs
Javascript vector library with flexible accessors
We found that flexible-vector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.