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.4.tar.gz (6.8 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.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgmath-0.0.4.tar.gz
  • Upload date:
  • Size: 6.8 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.4.tar.gz
Algorithm Hash digest
SHA256 c8bad9899d050748b4d7c76523bdaa579f7338bd9149715478f6261541a30fc8
MD5 2ed03464abe8b39acab1d2fdca661af7
BLAKE2b-256 8e4679ca431264071e2e9d3052366756a385b3e0baf001d582767ac26ce07528

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgmath-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec9276d322f12c649340715f5bf31c87f08e91630b80762292c513ef3eda69f
MD5 828bb0d8a342d7ee36ee0c3299158929
BLAKE2b-256 66cfe2ce210c9be6a8ebd85ea7ce9ce63fe8c785744db6173aa878d82ce6b72a

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