Basic vector lib with basic functions
Project description
Python basic vector
You can find the project here : https://framagit.org/PLOTFINDER/python-basic-vector
Vectors :
-
Vec2 ( float, float )
-
Attributes
- x ( get, set )
- y (get, set)
-
Methods
- div ( float ) -> Vec2
- mult ( float ) -> Vec2
- length () : returns the length of the vector
- normalize () : normalizes the vector
-
Class methods
- dist( Vec2, Vec2) : returns the distance between two 2D vectors
- degreesToVec2 ( float ): converts degrees to Vec2 and returns the result
- radiansToVec2 ( float ): converts radians to Vec2 and returns the result
- lerp ( Vec2, Vec2, float ) -> Vec2
-
-
Vec3 ( float, float, float )
-
Attributes
- x ( get, set )
- y ( get, set )
- z ( get, set )
-
Methods
- div ( float ) -> Vec3
- mult ( float ) -> Vec3
- length () : returns the length of the vector
- normalize () : normalizes the vector
-
Class methods
- dist( Vec3, Vec3) : returns the distance between two 3D vectors
- lerp ( Vec3, Vec3, float ) -> Vec3
-
-
Vec4 ( float, float, float, float )
-
Attributes
- x ( get, set )
- y ( get, set )
- w ( get, set )
- h ( get, set )
-
Methods
- div ( float ) -> Vec4
- mult ( float ) -> Vec4
- length () : returns the length of the vector
- normalize () : normalizes the vector
-
Class methods
- dist( Vec4, Vec4) : returns the distance between two 4D vectors
- lerp ( Vec4, Vec4, float ) -> Vec4
-
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
BasicVector-0.0.6.tar.gz
(3.5 kB
view details)
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 BasicVector-0.0.6.tar.gz.
File metadata
- Download URL: BasicVector-0.0.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa6a9923fb70e97a5120d4965e3d966e28b44d86a7d0d58f0b5270389d7bb1a
|
|
| MD5 |
9a0c397aa4040d77c687b73c49f2602b
|
|
| BLAKE2b-256 |
23d4339638483a93f5206f618b9484511e173153b4a3e87ef0e1bb7594cba7e0
|
File details
Details for the file BasicVector-0.0.6-py3-none-any.whl.
File metadata
- Download URL: BasicVector-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499202de885f6ed528e50868c7caaabb955d9cc20965823642d2e6208e1344c5
|
|
| MD5 |
bd0e9e2b50ebdf642c6857c632e07920
|
|
| BLAKE2b-256 |
ccc6a1116102046cd219c5b75d95d34e88c38d62b34752e23dc881d8ba8dfc17
|