diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Misc/BOUNCE.js | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
Diffstat (limited to 'js/Misc/BOUNCE.js')
-rw-r--r-- | js/Misc/BOUNCE.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/Misc/BOUNCE.js b/js/Misc/BOUNCE.js index 05e4a011..0aa04885 100644 --- a/js/Misc/BOUNCE.js +++ b/js/Misc/BOUNCE.js @@ -42,6 +42,18 @@ function BOUNCE() { return this.x; } BOUNCE.prototype.get = function BOUNCE() { + var options = { + rpar1:["Mass",this.rpar1], + rpar2:["Radius",this.rpar2], + walls:["[xmin,xmax,ymin,ymax]",this.walls], + xt:["xpos",this.xt], + xd:["xdpos",this.xd], + y:["ypos",this.y], + yd:["ydpos",this.yd], + g:["g (gravity)",this.g], + C:["C (aerodynamic coeff",this.C], + } + return options; } BOUNCE.prototype.set = function BOUNCE() { this.rpar1 = parseFloat((arguments[0]["rpar1"])) |