simplify double map into single map
This commit is contained in:
parent
bded9fccdf
commit
7cc0fd59c8
@ -877,8 +877,7 @@ impl Body{
|
||||
T1:integer::Fix<Planar64>,
|
||||
{
|
||||
// a*dt + v
|
||||
self.acceleration.map(|elem|dt*elem)
|
||||
.map(|elem|elem.divide().fix())+self.velocity
|
||||
self.acceleration.map(|elem|(dt*elem).divide().fix())+self.velocity
|
||||
}
|
||||
pub fn advance_time_ratio_dt(&mut self,dt:model_physics::GigaTime){
|
||||
self.position=self.extrapolated_position_ratio_dt(dt);
|
||||
|
Loading…
Reference in New Issue
Block a user