Skip to main content

A Python package modeling Rockets, Shuttles, and Circular Rockets with distance, area, and circumference calculations.

Project description

package_name

rocket is a Python library for Creating and move rockets in a 2D space, Compare rocket equality by position, Calculate distances between rockets and Specialized CircleRocket class with area and circumference calculations

Installation

Use the package manager pip to install rocket.

pip install rocket

Usage

from rocket import Rocket, CircleRocket

# Create a basic Rocket object
r1 = Rocket(0, 0)
r2 = Rocket(3, 4)

# Move a rocket
r1.move_rocket(1, 2)
print(r1)  # prints new position

# Compare two rockets
print(r1 == r2)  # checks if positions are equal

# Measure distance between rockets
print(r1.get_distance(r2))

# Create a CircleRocket (inherits from Rocket)
cr1 = CircleRocket(0, 0, 10)
print(cr1.get_area())          # prints area of the circular rocket
print(cr1.get_circumference()) # prints circumference

License

[MIT]("C:\Users\nabil\Downloads\AI DS\SEDS_Lab3\rocket\rocket\LICENCE.txt")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocket_amjebenamjed-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rocket_amjebenamjed-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file rocket_amjebenamjed-1.0.0.tar.gz.

File metadata

  • Download URL: rocket_amjebenamjed-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for rocket_amjebenamjed-1.0.0.tar.gz
Algorithm Hash digest
SHA256 140c57d94dca7693c8a5d5695dc93a480929707df3bf1559334b986cf0e9970e
MD5 2e82a8d53cf8360ec3943f3c476bf6e1
BLAKE2b-256 38a3dd1db7eff0ac9af1471166890344aedc058b0be29e041cc534192f7364e3

See more details on using hashes here.

File details

Details for the file rocket_amjebenamjed-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rocket_amjebenamjed-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4201d47f77bfad73fc733858d07226d0d405ad5fb636ee3d902823793984d3
MD5 ee08362a3107a027ae311effc2d9b97a
BLAKE2b-256 e2bd2be9a4eab472b9faac3b5f0fa373506e54cf10fcc61889d248103d4d1a17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page