Some content concerning the added parabel funktions
This commit is contained in:
parent
609c934caa
commit
edfec76f08
1 changed files with 6 additions and 2 deletions
|
@ -11,15 +11,19 @@ In versions after 1.0, it will require
|
||||||
[Wobbl Tools.](https://teapot.informationsanarchistik.de/Wobbl/wobbl_tools)
|
[Wobbl Tools.](https://teapot.informationsanarchistik.de/Wobbl/wobbl_tools)
|
||||||
|
|
||||||
The parabelfunc.py is used to calculate a ballistical curve with parameters for angle, speed, gravity to create a realistic flight.
|
The parabelfunc.py is used to calculate a ballistical curve with parameters for angle, speed, gravity to create a realistic flight.
|
||||||
It is called
|
It returns its coordinates depending on the resolution (xmax-xmin) * (ymax-ymin). So you probably want to keep xmin and ymin at 0.
|
||||||
|
0/0 is in mathematical representation left/down corner.
|
||||||
|
|
||||||
|
The function is called
|
||||||
```
|
```
|
||||||
berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe)
|
berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe)
|
||||||
```
|
```
|
||||||
|
|
||||||
and returns a list of x and y coordinates: [x1,y1,x2,y2....] like the following example for a display with a width of 10 points/pixel/char/weltrfaumgnietscies
|
and returns a list of x and y coordinates: [x1,y1,x2,y2....] like the following example for a display with a width of 10 points/pixel/char/weltraumgnietschies
|
||||||
```
|
```
|
||||||
[0, 0, 1, 1.1, 2, 1.7, 3, 2.4, 4, 2.9, 5, 3.5, 6, 4.0, 7, 4.5, 8, 5.0, 9, 5.4, 10, 5.8]
|
[0, 0, 1, 1.1, 2, 1.7, 3, 2.4, 4, 2.9, 5, 3.5, 6, 4.0, 7, 4.5, 8, 5.0, 9, 5.4, 10, 5.8]
|
||||||
```
|
```
|
||||||
|
|
||||||
The parameter cow is not useless, it can be set to any singlebyte ASCII string like "*" or some doublespaced UTF8 char like "🐄". If it is a singelchar in ASCII, which is the default, the Curve will be calculated with singlesteps, if ist is a UTF8-String, each step will be 2 points, because we now know, we have a textmode display and doublewidth chars.
|
The parameter cow is not useless, it can be set to any singlebyte ASCII string like "*" or some doublespaced UTF8 char like "🐄". If it is a singelchar in ASCII, which is the default, the Curve will be calculated with singlesteps, if ist is a UTF8-String, each step will be 2 points, because we now know, we have a textmode display and doublewidth chars.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue