Skip to main content

Maths and graph functions for vectors in the 3D space

Project description

Vector3D library

Helper library with Math and graphing related functions for vectors in the 3D space

Usage

Install the library by typing:

python -m pip install vec3d

Once installed, you'll have access to the Maths and graphing package:

from vec3d.graph import (
    Arrow3D,
    Colors3D,
    Points3D,
    draw3d,
)

from vec3d.math import cross, subtract

u = (3, -2, 2)
v = (2, 4, 3)

draw3d(
    Arrow3D(u, color=Colors3D.RED),
    Arrow3D(v, color=Colors3D.CYAN),
    Arrow3D(cross(u, v), color=Colors3D.PURPLE),
    Points3D(u, color=Colors3D.RED),
    Points3D(v, color=Colors3D.CYAN),
    Points3D(cross(u, v), color=Colors3D.PURPLE),
    elev=15
)

See Also

See also vec2d for a similar library for vectors on the 2D plane.

Acknowledgements

This library is a small refactoring of https://github.com/orlandpm/Math-for-Programmers library.

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

vec3d-0.2.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

vec3d-0.2.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file vec3d-0.2.4.tar.gz.

File metadata

  • Download URL: vec3d-0.2.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for vec3d-0.2.4.tar.gz
Algorithm Hash digest
SHA256 48d0bfdfa6cbdfcea62f3f74638594925d9c60bd178f381e2ff63a4980938e73
MD5 e4cc0da63c06001d785ffdb029b725b7
BLAKE2b-256 497ca19147e8d2d9fa74e3b3e4c8cee8d3177b406d82a713c6e36f2cfa506611

See more details on using hashes here.

File details

Details for the file vec3d-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: vec3d-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for vec3d-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f4e2ada72d9b5af45b1f4296f1900a729049da6c5e9a8e2607d1e7d99892b59
MD5 f2eca47cd32657138bcfffd545cb0615
BLAKE2b-256 2a0d25554c5b716e164df99484198ffcbf0b5b1d4d29ebba26f733779806ea8c

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