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
EasyVectorsPy-0.0.5.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for EasyVectorsPy-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4623f4c54b695d878ff1bc858b6f398b75e4c7d9a0f38266696e223051f489 |
|
MD5 | 936f7804947fb9b4c3e991e17bad0412 |
|
BLAKE2b-256 | 6f060fdfcba616e76f7e5a975de696b96798d3114658ae4c091e62f45454190e |