Skip to main content

Calculate the length of the sides that fit into the limited volume

Project description

fitrate

Calculate the length of the sides that fit into the limited volume

Test Coverage Package version


Documentation:

Demo:


fitrate

Requirements

Python 3.6+

Installation

$ pip3 install fitrate

Example

from fitrate import contain

print(contain((200, 200), 60000))
# (244, 244)

print(contain((400, 300), 60000))
# (282, 212)

# -----------

from fitrate import scale-down

print(scale-down((200, 200), 60000))
# (200, 200)

print(scale-down((400, 300), 60000))
# (282, 212)

— 🎞️ —

fitrate is licensed under the terms of the MIT license.

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

fitrate-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

fitrate-1.0.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page