Skip to main content

vectors and points by Charawi Detphumi

Project description

cos202finalbycharawi is a Python library for dealing with points and vectors.

Installation

Use the package manager pip to install cos202finalbycharawi.

pip install cos202finalbycharawi

Usage

from cos202finalbycharawi import Vector

v1 = Vector(1,2)
  v2 = Vector(3,4)
  print(v1)
  print(v2)
  v1.euclideandistance(v2)
  print(v1.lenght())
  print(v1.unit())
  print(v1.dotproduct(v2))
  #print(v1.crossproduct(v2))
  print(v1+v2)
  print(v1-v2)
  print(v1*v2)
  print(v1/v2)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

Charawi Detphumi

License

MIT

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

cos202finalbycharawi-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file cos202finalbycharawi-0.0.1.tar.gz.

File metadata

  • Download URL: cos202finalbycharawi-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for cos202finalbycharawi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d81f283840efc97cad8a052830efa2c6bb09d2b6c1a9d6a5ad7e5668de1bbde6
MD5 0e8b336e92bd310dbe8e3c406255a17e
BLAKE2b-256 37b776bbdf9c6b469082bd5a36672af147ddb52b4d3a9a76ff70f8616db34c38

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