Select Git revision
-
Dean Camera authored
Break device mode class driver interfaces into seperate config and state structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces.
Dean Camera authoredBreak device mode class driver interfaces into seperate config and state structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces.
DmaNode.js 735 B
//a node, two for each dmaBeam, not to be confused with node.js
function DmaNode(position, index) {
this._beams = [];//store all beams attached to this node, eventually this will be used to calc global stiffness K
this.position = position;
this.index = index;
}
DmaNode.prototype.getIndex = function(){
return this.index;
};
DmaNode.prototype.getPosition = function(){
return this.position.clone();
};
DmaNode.prototype.addBeam = function(beam){
this._beams.push(beam);
};
DmaNode.prototype.removeBeam = function(beam){
// this._beams.push(beam);
};
DmaNode.prototype.destroy = function(){
this._beams = null;//be sure to remove cyclic reference
this.position = null;
this.index = null;
};