Skip to content

Commit

Permalink
Deploying to gh-pages from @ b375b61 🚀
Browse files Browse the repository at this point in the history
greggman committed Mar 27, 2024
1 parent ac84ba2 commit 3eb8861
Showing 306 changed files with 4,440 additions and 68 deletions.
16 changes: 16 additions & 0 deletions dist/2.x/vec2-impl.d.ts
Original file line number Diff line number Diff line change
@@ -367,3 +367,19 @@ export declare function rotate(a: Vec2, b: Vec2, rad: number, dst?: Vec2): Vec2;
* @returns The lengthened vector
*/
export declare function setLength(a: Vec2, len: number, dst?: Vec2): Vec2;
/**
* Ensure a vector is not longer than a max length
*
* @param a The vec2 to limit
* @param maxLen The longest length of the resulting vector
* @returns The vector, shortened to maxLen if it's too long
*/
export declare function truncate(a: Vec2, maxLen: number, dst?: Vec2): Vec2;
/**
* Return the vector exactly between 2 endpoint vectors
*
* @param a Endpoint 1
* @param b Endpoint 2
* @returns The vector exactly residing between endpoints 1 and 2
*/
export declare function midpoint(a: Vec2, b: Vec2, dst?: Vec2): Vec2;
16 changes: 16 additions & 0 deletions dist/2.x/vec3-impl.d.ts
Original file line number Diff line number Diff line change
@@ -427,3 +427,19 @@ export declare function rotateZ(a: Vec3, b: Vec3, rad: number, dst?: Vec3): Vec3
* @returns The lengthened vector
*/
export declare function setLength(a: Vec3, len: number, dst?: Vec3): Vec3;
/**
* Ensure a vector is not longer than a max length
*
* @param a The vec3 to limit
* @param maxLen The longest length of the resulting vector
* @returns The vector, shortened to maxLen if it's too long
*/
export declare function truncate(a: Vec3, maxLen: number, dst?: Vec3): Vec3;
/**
* Return the vector exactly between 2 endpoint vectors
*
* @param a Endpoint 1
* @param b Endpoint 2
* @returns The vector exactly residing between endpoints 1 and 2
*/
export declare function midpoint(a: Vec3, b: Vec3, dst?: Vec3): Vec3;
16 changes: 16 additions & 0 deletions dist/2.x/vec4-impl.d.ts
Original file line number Diff line number Diff line change
@@ -327,3 +327,19 @@ export declare function transformMat4(v: Vec4, m: Mat4, dst?: Vec4): Vec4;
* @returns The lengthened vector
*/
export declare function setLength(a: Vec4, len: number, dst?: Vec4): Vec4;
/**
* Ensure a vector is not longer than a max length
*
* @param a The vec4 to limit
* @param maxLen The longest length of the resulting vector
* @returns The vector, shortened to maxLen if it's too long
*/
export declare function truncate(a: Vec4, maxLen: number, dst?: Vec4): Vec4;
/**
* Return the vector exactly between 2 endpoint vectors
*
* @param a Endpoint 1
* @param b Endpoint 2
* @returns The vector exactly residing between endpoints 1 and 2
*/
export declare function midpoint(a: Vec4, b: Vec4, dst?: Vec4): Vec4;
83 changes: 82 additions & 1 deletion dist/2.x/wgpu-matrix.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/2.x/wgpu-matrix.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 3eb8861

Please sign in to comment.