semvec/pypi-packages huggingface dataset:
torchstuff 0.0.1
Geometry processing and deep learning utilities for PyTorch.
License: Apache-2.0
Requires Python: >=3.8
Keywords: torch,pytorch,deep learning

# TorchStuff

Calculate the Polygon area and length (perimeter).

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)

## Installation

```bash
pip3 install torchstuff
```
## Usage

```python
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