Skip to main content

A vector module

Project description

Vectorial

PT-BR O objetivo desse módulo é criar um modo de lidar com vetores que seja o mais próximo possível de função built-in, quase como se o vetor se torna-se um novo tipo de variável dentro do Python. Eu busquei adicionar todas as operações com vetores existentes, todas as propriedades possíveis. Caso eu tenha esquecido algo por favor me avise e eu tentarei implementar.

Optei por não implementar a função de plot visto que é possível plotar facilmente utilizando a biblioteca matplotlin, tendo os parâmetros self.x e self.y como entrada. Caso vocês vejam utilidade e necessidade a função pode ser implementada em versões seguintes.

Observe que todos os métodos funcionam utilizando vetores representados com coordenadas, portanto se você tem um vetor representado como módulo e ângulo utilize primeiro o método estático Vector.decompose(), e só então use o vetor resultante com as demações funções. É possível retornar ao estado original utilizando o método self.compose, que retornará uma lista contendo o módulo e o ângulo original.

EN-US The purpose of this module is to create a way of dealing with vectors that is as close to the built-in function as possible, almost as if the vector becomes a new type of variable within Python. I've tried adding all operations with existing vectors, all possible properties. If I have forgotten something please let me know and I will try to implement.

I chose not to implement the plot function since it is possible to easily plot using the matplotlin library, taking the parameters self.x and self.y as input. If you see utility and necessity the function can be implemented in subsequent versions.

Note that all methods work by using vectors represented with coordinates, so if you have a vector represented as a module and angle, first use the static method Vector.decompose (), and then use the resultant vector with the functions. It is possible to return to the original state using the self.compose method, which will return a list containing the original module and angle.

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

Vectorial-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

Vectorial-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Vectorial-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.3

File hashes

Hashes for Vectorial-1.0.0.tar.gz
Algorithm Hash digest
SHA256 04c7101bd83cd362a168a109dc0c6046d6a011caca8bb448af1a4a31711a9b29
MD5 0bb2e5aa8260a2a5612d97ef00d5f82f
BLAKE2b-256 3c74009472128b943e74f01220e5aec564fae2af15e571a8f504abfc87423488

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Vectorial-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.3

File hashes

Hashes for Vectorial-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09493c08e46dae02b5b251c0cb47ad9bfabac5734d079a5178a153b3d459c418
MD5 c565da38600c7ee633bc3cc26dd4ac31
BLAKE2b-256 6570664fb44c7264549b5633154c25e0571b5d99b3b7fdaffc8b19b56d1c1c97

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