Vector3D readme
Vector3D is a lightweight package, written on python, for working with vectors and points in 3D decartian system.
Installing
You can install vector3d from pip:
python3 -m pip install vector3d or by downloading a .whl file from one of releases and installing it using this command: python -m pip install filename.whl
or you should download a source .tar.gz archive from one of releases, unpack it and install with following command:
python3 setup.py build python3 setup.py install
Reference
vector3d.vector
Implements the Vector class and vector related functions.
vector3d.vector.Vector
A vector class. Can be created as:
- Vector(x,y,z)
- Vector(x, y, z=0)
- Vector(x, y=0, z=0)
- or simply Vector() which is equivalent to Vector(0, 0, 0)
Functions in vector3d.vector
- from_point(a, b) - creates a vector from pair of points, begining and ending of vector.
- angle(a, b) - calculates angle between vectors a and b.
- horizontal_angle(a, b) - calculates angle between vectors a and b, but without Z coordinate (projections of a and b to XY plane).
- vertical_angle(a, b) - calculates angle between vectors a and b, but without X coordinate (projections of a and b to YZ plane)
vector3d.point
Implements a Point class and point related functions.
vector3d.point.Point
A class for the point in 3D decartian system. This class have only three attributes and: x, y and z coordinate of the point, and has no methods yet. A Point can be created with following constructors:
- Point(x, y, z)
- Point(x, y, z=0)
- Point(x, y=0, z=0)
- Or even Point() which is equivalent to Point(0, 0, 0)
Functions in vector3d.point
- distance(a, b) - calculates distance between two points
- center(a, b) _ calculates coordinates of the center between two points (returns a Point object)
Metadata
Release files for vector3d 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vector3d-1.1.1.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vector3d-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / vector3d-1.1.1.tar.gz
| Download URL | vector3d-1.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f58a744af5d8f125179a64517e0c6ec65ad5861203d03e23c3047b5d17febd79
|
|
BLAKE2b-256 checksum How to use checksums |
18711faa0b321eb035e1448ec0a3e3fac5906b5c3492f8007e9176996850d2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / vector3d-1.1.1-py3-none-any.whl
| Download URL | vector3d-1.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67183e3f7cd567efcdd5e6f8ce364081b1fd169db3fb082a71d266dc4c169f8d
|
|
BLAKE2b-256 checksum How to use checksums |
ae95cf9a77880582ef753aae1d37c7c2ebf24b433aceaa920bd2225b20276dc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|