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.6.tar.gz (7.7 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.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tgmath-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d2cf089a37ecef29c009900e2ac764049583cf2fa2e74277d2d90af82af1ace8
MD5 d187438d97928b2ad6d649bc15299fa6
BLAKE2b-256 ba215c9d6d736cb1e0257089242ef6cb1a4cec3b63ff9cf21b8c48078af36016

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tgmath-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e34dd7bccb2e269de6633f5de7e4042f34a9389e8addb24b9e66a415121c92e2
MD5 42d75f32171e3a1738f32f496c06e403
BLAKE2b-256 1832b4bba9b5e2f3e202e915991c2613c13cf97608fb9b1f408253d91a738912

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