Orbit picker: Add `Parabola` struct and interpolate function
[?]
Jun 16, 2021, 10:24 PM
C2WRKINGBHAWQFJJY3QJLE76NBTCPFEG4AKWP3AWGKB43T2JDJJQCDependencies
- [2]
44YVVUNCOrbit picker: functions to calculate forces and Roche limits
Change contents
- edit in orbitpick/src/nbody.rs at line 47
}/// A parabola in 3D space; used to model the motion of a single body between/// force calculations.pub struct Parabola {a: V3,b: V3,c: V3, - edit in orbitpick/src/nbody.rs at line 56[2.1536]
impl Parabola {pub fn interpolate(&self, t: f64) -> V3 {self.a * t * t + self.b * t + self.c}}