This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jntCount = ChainPose.count; | |
| angles[] = new Array( jntCount ).fill( 0 ) | |
| loop | |
| // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| // Get world space transform (pos,rot,scl) of each bone in the chain | |
| // Then preallocate space for the jacobian matrix | |
| transforms[] = compute_WorldSpace_Transforms( ChainPose ); | |
| jacobian = Array( transforms.length * 3 * 3 ); // Each Joint gets 3 floats for 3 axes | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| const fnWorker = ( evt )=>{ | |
| const data = evt.data; | |
| fnCreateVert( data ); | |
| }; | |
| async function fnCreateVert( y ){ | |
| const vert = new Float32Array( [0,y,0] ); | |
| console.log( 'Elevation Request', y, vert ); | |
| console.log( 'Size before post', vert.byteLength ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a folder called .vscode at the root of the project, add this file to it. | |
| ctrl+shift-b will rust the quickstart script. | |
| If you run the shortcut again, it will prompt you to terminate or restart the task. You will need to use a mouse to select the options. | |
| ---------- | |
| ::FUTURE:: | |
| https://github.com/microsoft/vscode/pull/117129 | |
| instancePolicy doesn't work yet. Waiting on review/merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| let myData = { woot:0 }; | |
| let state = StateProxy.new( myData ); | |
| state.$.dynamicProperties = false; | |
| state.$ | |
| .converter( "woot", "int" ) | |
| .on( "wootChange", (e)=>{ console.log( "wootChange", e.detail ) } ); | |
| state.woot = "500.5"; // Converter will change data to int( 500 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #version 300 es | |
| precision mediump float; | |
| out vec4 out_color; | |
| //------------------------- | |
| in vec3 frag_wpos; | |
| in vec3 frag_norm; | |
| in vec3 frag_cam; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DEFAULT CLASS ITERATOR | |
| [Symbol.iterator](){ | |
| let n = this.head; | |
| let result = { value:null, done:false }; | |
| return { next:()=>{ | |
| if( !n ) result.done = true; | |
| else{ | |
| result.value = n.value; | |
| n = n.next; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class VRot90{ | |
| // #region SINGLE AXIS ROTATION | |
| static xp( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = x; o[1] = -z; o[2] = y; return o; } // x-zy rot x+90 | |
| static xn( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = x; o[1] = z; o[2] = -y; return o; } // xz-y rot x-90 | |
| static yp( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = -z; o[1] = y; o[2] = x; return o; } // -zyx rot y+90 | |
| static yn( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = z; o[1] = y; o[2] = -x; return o; } // zy-x rot y-90 | |
| static zp( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = y; o[1] = -x; o[2] = z; return o; } // y-xz rot z+90 | |
| static zn( v, o ){ let x = v[0], y = v[1], z = v[2]; o[0] = -y; o[1] = x; o[2] = z; return o; } // -yxz rot z-90 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onload = function(){ | |
| let mesh = new TriMesh(); | |
| mesh.add( | |
| [-0.1, 0.0, 0.1], | |
| [0.1, 0.0, 0.1], | |
| [0.1, 0.0, 0.-1], | |
| ).add( | |
| [0.1, 0.0, 0.-1], | |
| [-0.1, 0.0, 0.-1], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <script> | |
| window.onload = function(){ | |
| let qID = 0; | |
| qID = QuadTreeID.set( qID, 2, QuadTreeID.A ); | |
| qID = QuadTreeID.set( qID, 0, QuadTreeID.C ); | |
| qID = QuadTreeID.set( qID, 3, QuadTreeID.D ); | |
| qID = QuadTreeID.set( qID, 1, QuadTreeID.B ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package dao; | |
| import java.sql.ResultSetMetaData; | |
| import java.sql.SQLException; | |
| import java.sql.Types; | |
| import java.text.SimpleDateFormat; | |
| import javax.json.Json; | |
| import javax.sql.rowset.CachedRowSet; | |
| public class RowSets { |