Skip to main content

Geometry processing and deep learning utilities for PyTorch.

Project description

TorchStuff

Calculate the Polygon area and length (perimeter).

Table of Contents

Installation

pip3 install torchstuff

Usage

import torch

# Example vertices
vertices = torch.tensor([[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]])

# Create Polygon object
polygon = Polygon(vertices)

# Access properties
area = polygon.area
length = polygon.length

print(f"Area: {area}, Length: {length}")

Contributing

Just me for now

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

torchstuff-0.0.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

torchstuff-0.0.1-py3-none-any.whl (7.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