Metadata-Version: 2.4
Name: rotate-plane-3d
Version: 0.1.0
Summary: Compute the translation and rotation of a point-normal plane in 3D space.
License: MIT
License-File: LICENSE
Author: GGN_2015
Author-email: neko@jlulug.org
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: numpy
Description-Content-Type: text/markdown

# rotate_plane_3d
Compute the translation and rotation of a point-normal plane in 3D space.

## Installation

```bash
pip install rotate_plane_3d
```

## Usage

```python
import numpy as np
from rotate_plane_3d import get_rotation_matrix
from rotate_plane_3d import transform_plane

# Original plane
A: Vector3D = np.array([1.0, 2.0, 3.0])
B: Vector3D = np.array([0.0, 0.0, 1.0])

# Transformation
trans: Vector3D = np.array([5.0, -1.0, 2.0])
rot: Matrix3x3 = get_rotation_matrix(np.pi/2, 0.0, 0.0)

new_A, new_B = transform_plane(A, B, rot, trans)

print("New point A:\n", np.round(new_A, 4))
print("New normal B:\n", np.round(new_B, 4))
```

