Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lines_methods-0.0.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

lines_methods-0.0.7-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for lines_methods-0.0.7.tar.gz
Algorithm Hash digest
SHA256 65168f3a6d4796f2b6f050076d442c9bc9e82b63015440c5a9dbe2e10ec36c9a
MD5 cdd135effc94240cdf44f1440337c391
BLAKE2b-256 6211971c47992ed699dec8d4b4a14f75c56061d5fdfeb3ad20c26d41dc9f2a84

See more details on using hashes here.

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

Hashes for lines_methods-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a1872c84611ebd9238a7a27ac191a56598666d280ae382729aa602c6fd4dab2d
MD5 98d6465acf2dc2a39355c52c04442d5f
BLAKE2b-256 9a96597ee19d73682ea6ede06b17d4eaa1f7d6f663e321730a23041951159a6a

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