Skip to main content

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, float, float )
      • mult ( float, float, float )
      • length () : returns the length of the vector
      • normalize () : normalizes the vector
      • normal() : returns a normalized vector
      • getPos() : returns the position in a form of a tuple
      • clone() : returns a clone of the Vector class
    • 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
      • vec2ToRadians ( float ): converts vec2 to an angle in radians and returns the result
      • vec2ToDegrees ( float ): converts vec2 to an angle in degrees and returns the result
      • collinear ( Vec2, Vec2, Vec2 ) : looks if the 3 vectors are collinear and returns True or False
      • between( Vec2, Vec2, Vec2 ) : looks if the target vector is between two vectors
      • lerp ( Vec2, Vec2, float ) -> Vec2
  • Vec3 ( float, float, float )

    • Attributes

      • x ( get, set )
      • y ( get, set )
      • z ( get, set )
    • Methods

      • div ( float, float, float, float )
      • mult ( float, float, float, float )
      • length () : returns the length of the vector
      • normalize () : normalizes the vector
      • normal() : returns a normalized vector
      • getPos() : returns the position in a form of a tuple
      • clone() : returns a clone of the Vector class
    • Class methods

      • dist( Vec3, Vec3) : returns the distance between two 3D vectors
      • collinear ( Vec3, Vec3, Vec3 ) : looks if the 3 vectors are collinear and returns True or False
      • between( Vec3, Vec3, Vec3 ) : looks if the target vector is between two 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, float, float, float, float ) -> Vec4
      • mult ( float, float, float, float, float ) -> Vec4
      • length () : returns the length of the vector
      • normalize () : normalizes the vector
      • normal() : returns a normalized vector
      • getPos() : returns the position in a form of a tuple
      • clone() : returns a clone of the Vector class
    • Class methods

      • dist( Vec4, Vec4) : returns the distance between two 4D vectors
      • collinear ( Vec4, Vec4, Vec4 ) : looks if the 3 vectors are collinear and returns True or False
      • between( Vec4, Vec4, Vec4 ) : looks if the target vector is between two vectors
      • lerp ( Vec4, Vec4, float ) -> Vec4

Metadata

Release files for BasicVector 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BasicVector 0.0.9
File Size Uploaded
BasicVector-0.0.9.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BasicVector 0.0.9
File Interpreter ABI Platform
BasicVector-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / BasicVector-0.0.9.tar.gz

Download URL BasicVector-0.0.9.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f337c9c8a04e11145844f0620801beee0cda1a561c5a7bd68b2237de7d61e358
BLAKE2b-256 checksum
How to use checksums
e3370306d53d381b7a09a27728a675aae4047906994eba63c231827f2805855b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

Release files / BasicVector-0.0.9-py3-none-any.whl

Download URL BasicVector-0.0.9-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f957796be8dd732667b558d8d384f7ad815f6e4876a5181344e982eaee495d72
BLAKE2b-256 checksum
How to use checksums
62422239b9cf19f7418f00bf4c3faf794ee882fd1d14ac119d773517fff4b1db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page