Skip to main content

A few useful maths functions, mainly for my personal projects.

Project description

TGMath

by hardthingphantom

This package is mostly for quality of life, reducing casts, conversions etc.

This package contains a few useful maths functions which python doesn't offer in the way I like in the regular math package. It also contains variable-size vector and matrix classes because I wanted them.

Features:

  • Trigonometric functions with either degrees or radians (can be changed)
  • Floor and ceil functions which return integers by default.
  • Clamp function
  • Variable size vector class.
  • Variable size matrix class.

More will probably come when I find more stuff I need. Please note this is mostly for my personal projects and I've been adding things as I need them so if there is something obvious missing please let me know. I have tried to optimise things as much as I can, especially the vec and mat classes.

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

tgmath-0.0.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgmath-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file tgmath-0.0.3.tar.gz.

File metadata

  • Download URL: tgmath-0.0.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for tgmath-0.0.3.tar.gz
Algorithm Hash digest
SHA256 79d68ac49aab7093c4c5ff7821d4b86729167fcb9dba8c07ced92e1c783c92b0
MD5 bd6f3402ab0633fd1f68cdf4753e50df
BLAKE2b-256 e384841132e1a9d9630b6427265cd9dd8272a7465c01974deca9309906e4056e

See more details on using hashes here.

File details

Details for the file tgmath-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tgmath-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for tgmath-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7af50b4b2865fce2a39a30e6034507e83d58a3e90e48d6385ac0a3c8a4ed28f6
MD5 d7626ff668f412eef91ec564152185cc
BLAKE2b-256 aac86f952cea940d33ecf567e973116ef620075870137c587de39f5d059384f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page