Skip to main content

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


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)

Uploaded Source

Built Distribution

EasyVectorsPy-0.0.5-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

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