-
... or3D var <>velocity; //TraerVector3D var <>force; //TraerVector3D var <>mass; //Float var <>age; //Float var <>dead; //Boolean var <>fixed; //Boolean *new {|m= 1| ^super.new.initTraerParticle(m); } initTraerParticle {|m| position= TraerVect ...
-
Rational An adapter (wrapper) for a floating point number which, within a given precision, will attempt to display as a fraction of two integers. Normal math operators may be used on rationals, and the result will be a rational. If a ration ...
-
Rational An adapter (wrapper) for a floating point number which, within a given precision, will attempt to display as a fraction of two integers. Normal math operators may be used on rationals, and the result will be a rational. If a ration ...
-
... murderandcreate.com/physics/ TraerSpring : TraerForce { var <>springConstant; //Float var <>damping; //Float var <>restLength; //Float var <>a; //TraerParticle var <>b; //TraerParticle var <>on; //Boolean *new {|a, b, ks, d, r| ^super.new.i ...
-
... Note [Precision] // ~~~~~~~~~~~~~~~~ // // Numerator and denominator are always Float, never Integer. // // An sclang Integer is 32 bits and wraps past 2147483647 with no warning. A // Float is an IEEE double and holds every integer exactly ...
-
... }; args.any(_ == 0).if { ^0 }; lcm = args.inject(this, { |x, y, i| // z must be float for reliable threshold check, thus '/' instead of 'div' var z = x / gcd(x.isFloat.if { x.round.asInteger }{ x }, y) * y; (z > thr).if { (i < (args.size-1) ...
-
... // this will respond to itself "Testing challenge authentication with Array of floats as challenge:".postln; challenge1.authenticate(peer1, {result = true }); this.asynchAssert({result.notNil}, {result}, "authentication timed out", 2); res ...
-
... bject { var <>world, //world <>loc, <>vel, <>accel, //vectors <>mass, <>size; //floats *new {|world, loc, vel, accel, mass, size| ^super.newCopyArgs( world ?? {RedWorld.new}, //defaults to 2d world loc ?? {RedVector2D[0, 0]}, vel ?? {RedVec ...
-
... erandcreate.com/physics/ TraerParticleSystem { classvar <>default_gravity= 0; //Float classvar <>default_drag= 0.001; //Float var <>particles; //List var <>springs; //List var <>attractions; //List var <>customForces; //List var <>integrato ...
-
... rver .recChannels_(m.config.numChans ? 2) // record numChans .recSampleFormat_("float") // in float to recover from clipping ; if (m.server.serverRunning) { m.warnWin( "Setting Server.options while server running!\n" "Settings will not take ...