too late commit lol

This commit is contained in:
ajuvercr 2020-04-17 15:12:11 +02:00
parent 1fa5390f87
commit a849ee7356

View file

@ -44,6 +44,11 @@ fn spr(from: f32) -> f32 {
impl Circle { impl Circle {
pub fn new(p1: &types::Planet, p2: &types::Planet) -> Self { pub fn new(p1: &types::Planet, p2: &types::Planet) -> Self {
use std::f32::consts::PI;
let pi2 = 2.0 * PI;
console_log!("Test");
let x1 = p1.x; let x1 = p1.x;
let y1 = p1.y; let y1 = p1.y;
let x2 = p2.x; let x2 = p2.x;