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.2.tar.gz (5.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.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgmath-0.0.2.tar.gz
  • Upload date:
  • Size: 5.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.2.tar.gz
Algorithm Hash digest
SHA256 7565a47d4e43effb1c0a9f0f3bec16fa38d1f13cfd254313bc0e4ae632b5095e
MD5 83fa86d3cafe7ecb9045b8402146255e
BLAKE2b-256 c67b084fd008cada5c9cf7ce82a4563f93eaaa70c9c45f0e622b8ca789b92d18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgmath-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42ec109076c0eb7ccdbd40bc98393e2d31036409cf479e16d6adb1c5d8f6c379
MD5 a835bb20b466a10c321ce741ce4e6934
BLAKE2b-256 f27d8f1f50794593dd5f4e5b9b5ac0e2d1805e1e4e0ec1c1743bd0bae7d1da68

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