`rocket` is a Python library for simulating and manipulating rocket objects, including their movement and different properties.
Project description
package_name
rocket_youcef is a Python library for simulating and manipulating rocket objects, including their movement and different properties.
Installation
Use the package manager pip to install rocket.
pip install rocket_youcef
Usage
import rocket_youcef
# creates a Rocket instance, has 2 parameters X and Y
# default is position (0,0) if no parameters given
rocket1=rocket_youcef.Rocket(4,5)
# creates a Shuttle Rocket instance, has 3 parameters X and Y and flights_completed
# default is postition (0,0) and 0 flights completed if no parameters given
rocket2=rocket_youcef.Shuttle(3,6,10)
# creates a Circular Rocket instance, has 3 paramateres: X and Y and Radius
# default is postition (0,0) and radius=1
rocket3=rocket_youcef.CircleRocket(3,3,5)
## Shared Methods:
# Calculates the distance from this rocket to another rocket,
# and returns that value.
get_distance(rocket1,rocket2)
# Move the rocket according to the paremeters given.
# Default behavior is to move the rocket up one unit.
move_rocket(rocket1,10,5)
## Class specific Methods:
## CircleRocket
# returns Rocket Area
rocket3.get_area()
# returns Rocket Circumference
rocket3.get_circumference()
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rocket_youcef-2.0.0.tar.gz
(3.0 kB
view details)
File details
Details for the file rocket_youcef-2.0.0.tar.gz.
File metadata
- Download URL: rocket_youcef-2.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
225783eabcaa73c07edfb8e0995b7322a21777e4fcf32ad926d7fb543f1f873d
|
|
| MD5 |
9880be3c7c019b7225ac32cc30bb6205
|
|
| BLAKE2b-256 |
f4100d5ad0c474b87df8d37c175fe062255698e8d4ed557518570c368b60389a
|