VectorsPY
Python module to use Vector2 and Vector3 (as in Unity Game Engine - C#) in Python.
- Create Vector2 objects for 2D Vectors (x and y coordinate system)
- Create Vector3 objects for 3D Vectors (x,y and z coordinate system)
- Add, Subtract 2 Vectors
- Get Magnitude of Vector Object
and much more
What's New In this Version
- Function
dot()to calculate Dot (Scaler) Product. - Function
cross()to calculate Cross (Vector) Product. .direction()attribute to get dirction of Vector2.
Installation
Using pip -
pip install VectorsPY
General
VectorsPY has 2 Major classes
- Vector2 For 2D Vectors
- Vector3 For 3D Vectors
Usage
To create new 2D Vector use Vector2 class.
new2DVector = Vector2(x_value, y_value)
Similarly use Vector3 to create 3D Vector.
new3DVector = Vector3(x_value, y_value, z_value)
To create Vector from List, Tuple (iterables) use Miscellaneous function Vector. This will return a new Vector2 or Vector3 object based on iterable passed as argument.
iterable1 = [1,2]
newVector1 = Vector(iterable1) #new Vector2 object from list
iterable2 = (4,5)
newVector2 = Vector(iterable2) #new Vector2 object from tuple
iterable3 = (3,4,5)
newVector3 = Vector(iterable3) #new Vector3 object from tuple
iterable4 = [3,4,5]
newVector4 = Vector(iterable4) #new Vector3 object from list
See Complete Documentation Here
Full Documentaion can be found on ReadTheDocs
Metadata
Release files for VectorsPY 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| VectorsPY-1.0.2.tar.gz | 3.3 kB | Without provenance | Details for VectorsPY-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| VectorsPY-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for VectorsPY-1.0.2-py3-none-any.whl |
Total release size: 19.0 kB
Release files / VectorsPY-1.0.2.tar.gz
| Download URL | VectorsPY-1.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cead9b8e6f775caba5f14f08e3bb28681cc08a3f422a753ec2dd4ff5238a1f1
|
|
BLAKE2b-256 checksum How to use checksums |
727d4a6f72f2a53b072fd21a890a53a2c59f5cc375c45239cdab855b40d360f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
|
Release files / VectorsPY-1.0.2-py3-none-any.whl
| Download URL | VectorsPY-1.0.2-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db720dc3aef5f219e4145d1559a397ff82ebe6540518ebb35ba83871e341f002
|
|
BLAKE2b-256 checksum How to use checksums |
3ae146b02a7388f421856a3ce6c01f3479653d070beb0562c11badc1cd60b40c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0rc1
|
Security for VectorsPY 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.