Skip to content
Snippets Groups Projects
Select Git revision
  • 899df7d3318e478859d940ec8debe679888476a5
  • master default protected
  • LUFA-170418
  • LUFA-151115
  • LUFA-140928
  • LUFA-140302
  • LUFA-130901
  • LUFA-130901-BETA
  • LUFA-130303
  • LUFA-120730
  • LUFA-120730-BETA
  • LUFA-120219
  • LUFA-120219-BETA
  • LUFA-111009
  • LUFA-111009-BETA
  • LUFA-110528
  • LUFA-110528-BETA
17 results

ConfigDescriptor.h

Blame
  • DmaNode.js NaN GiB
    //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;
    };