Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

// Just fuckin' imagine this is a class idgaf any more kill me
let networks = []
class Network {
constructor (masterNode) {
this.id = id
this.momentOfInertia = 0
this.frequency = 0
this.nodes = [masterNode]
}

Keybase proof

I hereby claim:

  • I am chrisrimmer on github.
  • I am chrisdrimmer (https://keybase.io/chrisdrimmer) on keybase.
  • I have a public key ASC5ieR0YBAOc3pP3nnHi1l648Xtg_z0zBebTrzXB-LGtQo

To claim this, I am signing this object:

/**
* Generic thing-in-orbit-around-a-thing class.
* Has properties to store orbital elements as well as functions to calculate
* them from whatever data is available.
*/
function SoI(name, position, velocity, mass, parentSOI) {
this._name = name
this._position = position
this._velocity = velocity
this._mass = mass