[spam][crazy] coding therapy: hello world with structure

Undescribed Horrific Abuse, One Victim & Survivor of Many gmkarl at gmail.com
Thu Oct 13 17:17:04 PDT 2022


struct particle_t {
  float pos[4], vel[4], accel[4];
};

void particle_update(particle_t * p, float time)
{
  for (int coord = 0; coord < 4; coord += 1) {
    pos[coord] += vel[coord] * time;
    vel[coord] += accel[coord] * time;
  }
}


More information about the cypherpunks mailing list