Vector3D is a small package for processing 3D vector in decartian system and some vector-related function, such as distance between two points, angle between vectors, ETC
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vector3d-1.1.1.tar.gz.
File metadata
- Download URL: vector3d-1.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f58a744af5d8f125179a64517e0c6ec65ad5861203d03e23c3047b5d17febd79
|
|
| MD5 |
4e8e70396d5df1f39d17ebdd119dc69f
|
|
| BLAKE2b-256 |
18711faa0b321eb035e1448ec0a3e3fac5906b5c3492f8007e9176996850d2ef
|
File details
Details for the file vector3d-1.1.1-py3-none-any.whl.
File metadata
- Download URL: vector3d-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67183e3f7cd567efcdd5e6f8ce364081b1fd169db3fb082a71d266dc4c169f8d
|
|
| MD5 |
dab341cb67ba8da33717af20755b9b73
|
|
| BLAKE2b-256 |
ae95cf9a77880582ef753aae1d37c7c2ebf24b433aceaa920bd2225b20276dc4
|