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.0.tar.gz (8.7 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.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vec3d-0.2.0.tar.gz
  • Upload date:
  • Size: 8.7 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.0.tar.gz
Algorithm Hash digest
SHA256 a6b74db15376a21a670b05e53cd25cc3216e1a9a5d1d73a6a445a66507fb79f5
MD5 46dca5e46e19297477ab800dea1decbd
BLAKE2b-256 1db288ff8e2ac70224adcd7baeaea71e38a73bb9fa710c7b5273efd9ce8bdca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vec3d-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3605ce6677730965a033f194cdfac5836ecc4854196672e3db487489c9a571
MD5 554d5743c18de6d48f5ca2db35a51072
BLAKE2b-256 8f4707db4df8f51611aa85cc9085367d5af9a0dbeef1d007ca4b271963f95af9

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