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.3.tar.gz (10.2 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.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vec3d-0.2.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for vec3d-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1453daeac15f8addf97ba5318e2198e619e500428d2022ca6a05cf6afaaed436
MD5 fa0f7791633264ffc869c450ba2fe95a
BLAKE2b-256 c6496fd152fb6f584295b7a6c9ea4f6f4097252033d8e298ee2e838ce296d7a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vec3d-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for vec3d-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b45615fe35bb98bb784292be4ba644912f1147743e248bef240978ad2a241fdc
MD5 c2d930d7b6389f7d37a207f6e7ac4cc2
BLAKE2b-256 38f54aa43c9a3e16c66fbc564d18173a7f4d80a3761eb2fba474ee61bca019d4

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