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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgmath-0.0.7.tar.gz
  • Upload date:
  • Size: 8.0 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.7.tar.gz
Algorithm Hash digest
SHA256 8c91f42b14e88f45c896df48989882eac7e37986040d0ebf31999b06628a8b83
MD5 c2d6284ce5a145bbcf8ca2cb53a8cbca
BLAKE2b-256 6a06f6e2b31f6e84e35bdf56d9277955d3f76d769fe538c8b785846123d05943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgmath-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e1b1a18742767400341e178d845b1dcde552ef1cdf3fd847adbad784823cad94
MD5 2ede50afd325ac2eb089b63c303b67b5
BLAKE2b-256 642a93ec3e24ac72ecc63eb96441ac7ab2931f5fb89d96789c3f953d3f688e9f

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