Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3d6ecfc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Mar 26, 2024
1 parent 41dc7ab commit ac84ba2
Show file tree
Hide file tree
Showing 300 changed files with 2,211 additions and 78 deletions.
8 changes: 8 additions & 0 deletions dist/2.x/vec2-impl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,11 @@ export declare function transformMat3(v: Vec2, m: Mat3, dst?: Vec2): Vec2;
* @returns the rotated vector
*/
export declare function rotate(a: Vec2, b: Vec2, rad: number, dst?: Vec2): Vec2;
/**
* Treat a 2D vector as a direction and set it's length
*
* @param a The vec2 to lengthen
* @param len The length of the resulting vector
* @returns The lengthened vector
*/
export declare function setLength(a: Vec2, len: number, dst?: Vec2): Vec2;
8 changes: 8 additions & 0 deletions dist/2.x/vec3-impl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,11 @@ export declare function rotateY(a: Vec3, b: Vec3, rad: number, dst?: Vec3): Vec3
* @returns {vec3} out
*/
export declare function rotateZ(a: Vec3, b: Vec3, rad: number, dst?: Vec3): Vec3;
/**
* Treat a 3D vector as a direction and set it's length
*
* @param a The vec3 to lengthen
* @param len The length of the resulting vector
* @returns The lengthened vector
*/
export declare function setLength(a: Vec3, len: number, dst?: Vec3): Vec3;
8 changes: 8 additions & 0 deletions dist/2.x/vec4-impl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,11 @@ export declare function zero(dst?: Vec4): Vec4;
* @returns the transformed vector
*/
export declare function transformMat4(v: Vec4, m: Mat4, dst?: Vec4): Vec4;
/**
* Treat a 4D vector as a direction and set it's length
*
* @param a The vec4 to lengthen
* @param len The length of the resulting vector
* @returns The lengthened vector
*/
export declare function setLength(a: Vec4, len: number, dst?: Vec4): Vec4;
41 changes: 40 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.

140 changes: 70 additions & 70 deletions dist/2.x/wgpu-matrix.min.js

Large diffs are not rendered by default.

41 changes: 40 additions & 1 deletion dist/2.x/wgpu-matrix.module.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.module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/functions/mat3.clone.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec2.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec2.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec2.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec2.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec2.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec2.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec2.transformMat3.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat3</span></a></li>
Expand Down Expand Up @@ -298,6 +299,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec3.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec3.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec3.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec3.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec3.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec3.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec3.transformMat3.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat3</span></a></li>
Expand Down Expand Up @@ -348,6 +350,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec4.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec4.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec4.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec4.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec4.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec4.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec4.transformMat4.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat4</span></a></li>
Expand Down
3 changes: 3 additions & 0 deletions docs/functions/mat3.copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec2.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec2.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec2.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec2.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec2.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec2.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec2.transformMat3.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat3</span></a></li>
Expand Down Expand Up @@ -298,6 +299,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec3.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec3.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec3.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec3.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec3.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec3.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec3.transformMat3.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat3</span></a></li>
Expand Down Expand Up @@ -348,6 +350,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<li><a href="vec4.scale.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>scale</span></a></li>
<li><a href="vec4.set.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set</span></a></li>
<li><a href="vec4.setDefaultType.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Default<wbr/>Type</span></a></li>
<li><a href="vec4.setLength.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>set<wbr/>Length</span></a></li>
<li><a href="vec4.sub.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>sub</span></a></li>
<li><a href="vec4.subtract.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>subtract</span></a></li>
<li><a href="vec4.transformMat4.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>transform<wbr/>Mat4</span></a></li>
Expand Down
Loading

0 comments on commit ac84ba2

Please sign in to comment.