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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for torchstuff-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6186be0ed7b9c43e699c9164d0ba6febc24dff7862667a14be7e52454d72c78e |
|
MD5 | ae314b2d1a3a20378afeb02ea7b2099b |
|
BLAKE2b-256 | 991f811d959c0687b6615500aacf4987523bcb0b67fde7e7bada1c6c8ab38417 |