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.5.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.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgmath-0.0.5.tar.gz
  • Upload date:
  • Size: 5.9 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.5.tar.gz
Algorithm Hash digest
SHA256 d7ece959e620df9b5916efe1da31f04ce5f54954fd7b21eee86278da56513179
MD5 046e208f1e617879b0702bf2a6e06c7d
BLAKE2b-256 8d387de36f0b73866e2379e57232175e5b2faadec3fbdb4095bb29cb2746d07c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgmath-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cc7ea808a71db14ed2f4c0b1a8955fb9df4b4a23369669c0a641002b86c269ac
MD5 36ecae35d7d6cdb996ed5584f7c4f8f2
BLAKE2b-256 9f122b43f8cb2175383b5c8110b22d44e9326d784d31cd4aa5e4b7ed2f2cc438

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