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.1.0.tar.gz (8.4 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.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vec3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4334af846ac30eab8d07ed21fef46a0cef8e8e2061d48d551f8076d4d44e6531
MD5 1af74ef4c1b26cc31e3c3d4d43d8f9a6
BLAKE2b-256 cd320eb03c36a94ad0e80d8fb9659d01e7761f7bf284d133581bf8c5ac0f387c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vec3d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4363fc73b4578cacb4e02fef6c8e1bb29c179b0ab4c46b271b9be4c7164e54
MD5 d65f7349a5433469ea20c2fd2b8375eb
BLAKE2b-256 2cb22a32cd09dda293fe24aeb6d7a776fb1786ef1c5562f6648c2341449f5fe4

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