mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix various typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
This commit is contained in:
parent
7eeae4db87
commit
d68f375e38
68 changed files with 99 additions and 100 deletions
|
@ -69,9 +69,9 @@ def calc_distance(pos1, pos2):
|
|||
|
||||
def calc_acceleration_distance(init_speed: float, target_speed: float, acceleration: float) -> float:
|
||||
"""Given the initial speed, the target speed, and the acceleration
|
||||
|
||||
calculate the distance that's neede for the acceleration to finish.
|
||||
calculate the distance that's needed for the acceleration to finish.
|
||||
"""
|
||||
|
||||
if acceleration == 0:
|
||||
return 0.0
|
||||
return (target_speed ** 2 - init_speed ** 2) / (2 * acceleration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue