library that helps when working with coordinates like(Pillow, Pygame)
Project description
EasyVectorsPy
Eng
library that helps when working with coordinates like(Pillow, Pygame)
Examples
from EasyVectors import Vector2
vector = Vector2(10, 67)
print(vector.get('x'))
This code will give the output 10
from EasyVectors import Vector2
vector = Vector2()
print(vector.getstr())
This code will give the output X 0 Y 0
from EasyVectors import Vector2
vector = Vector2()
vector2 = Vector2(56, 81)
vector.update(8 , 1)
print(vector.distance_to(vector2))
This code will give the output 93.2952303175248
A description of all methods can be found on the Wiki
Ru
Библиотека для упрощения работы с координатами, например(Pillow, Pygame)
Примеры
from EasyVectors import Vector2
vector = Vector2(10, 67)
print(vector.get('x'))
Этот код выведет 10
from EasyVectors import Vector2
vector = Vector2()
print(vector.getstr())
Этот код выведет X 0 Y 0
from EasyVectors import Vector2
vector = Vector2()
vector2 = Vector2(56, 81)
vector.update(8 , 1)
print(vector.distance_to(vector2))
Этот код выведет 93.2952303175248
Описание всех методов можно найти на Wiki
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
Built Distribution
File details
Details for the file EasyVectorsPy-0.0.5.tar.gz
.
File metadata
- Download URL: EasyVectorsPy-0.0.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ed4ba9ac12d466642e31b619dbaea2bb227f7c72680c2fcee01b50ecb67c07ac
|
|
MD5 |
fe76141f411bdced1e016beff55d294f
|
|
BLAKE2b-256 |
d6bce3bc7b532ebb225bdd3ad3741d291537b7a8c7f9757c4eadecd0067a268f
|
File details
Details for the file EasyVectorsPy-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: EasyVectorsPy-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
aa4623f4c54b695d878ff1bc858b6f398b75e4c7d9a0f38266696e223051f489
|
|
MD5 |
936f7804947fb9b4c3e991e17bad0412
|
|
BLAKE2b-256 |
6f060fdfcba616e76f7e5a975de696b96798d3114658ae4c091e62f45454190e
|