This is the simplest module for quick work with 2D vectors
Project description
Lines Methods Library
What is this?
The module allows you to work with vectors in 2D coordinates like [x1, y1, x2, y2].
Quick Guide
The module is based on the following structure:
vector = [1, 1, 5, 2]
length = get_length(coordinates=vector)
Using
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the from ...import construct).
Examples of some operations:
Finding the intersection point of two vectors using the get_intersection() function:
intersection = get_intersection(line_a, line_b)
Finding the length of the vector using the get_length() function:
length = get_length(coordinates)
Finding the angle between two vectors using the get_angle_between_lines() function:
angle = get_angle_between_lines(line_a, line_b)
Stretch the line in both directions using the extend_line() function:
new_coordinates = extend_line(line, extend_length)
Finding the midpoint using the get_medium_point_from_line() function:
medium_point = get_medium_point_from_line(line)
Developer
My github: Ugryumov_AV
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lines_methods-0.0.7.tar.gz.
File metadata
- Download URL: lines_methods-0.0.7.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65168f3a6d4796f2b6f050076d442c9bc9e82b63015440c5a9dbe2e10ec36c9a
|
|
| MD5 |
cdd135effc94240cdf44f1440337c391
|
|
| BLAKE2b-256 |
6211971c47992ed699dec8d4b4a14f75c56061d5fdfeb3ad20c26d41dc9f2a84
|
File details
Details for the file lines_methods-0.0.7-py3-none-any.whl.
File metadata
- Download URL: lines_methods-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1872c84611ebd9238a7a27ac191a56598666d280ae382729aa602c6fd4dab2d
|
|
| MD5 |
98d6465acf2dc2a39355c52c04442d5f
|
|
| BLAKE2b-256 |
9a96597ee19d73682ea6ede06b17d4eaa1f7d6f663e321730a23041951159a6a
|