Added detaching child process

This commit is contained in:
nik012003
2023-02-25 00:36:07 +01:00
parent a6b0cd0675
commit 8454b3d84a
4 changed files with 40 additions and 16 deletions

View File

@@ -32,8 +32,8 @@ impl Hex {
}
fn get_coords(&self) -> [f32; 3]{
let x: f32 = 3.0/2.0 * APP_SIZE.to_f32()/2.0 * (-self.q-self.s).to_f32();
let y = 3.0_f32.sqrt() * APP_SIZE.to_f32()/2.0 * ( (-self.q-self.s).to_f32()/2.0 + self.s.to_f32());
let x = 3.0/2.0 * APP_SIZE/2.0 * (-self.q-self.s).to_f32();
let y = 3.0_f32.sqrt() * APP_SIZE/2.0 * ( (-self.q-self.s).to_f32()/2.0 + self.s.to_f32());
[x,y,0.0]
}