rotate_plane_3d
Compute the translation and rotation of a point-normal plane in 3D space.
Installation
pip install rotate_plane_3d
Usage
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))
Metadata
Release files for rotate-plane-3d 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rotate_plane_3d-0.1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rotate_plane_3d-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / rotate_plane_3d-0.1.0.tar.gz
| Download URL | rotate_plane_3d-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17b47ad2fd3afaf2fdf1b3c5a674418677d02af89353c09e46413cb176306454
|
|
BLAKE2b-256 checksum How to use checksums |
fe837d2d9ce196329aeede24ecd96186207c6e0169763bae473f646255fd65db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Windows/11
|
Release files / rotate_plane_3d-0.1.0-py3-none-any.whl
| Download URL | rotate_plane_3d-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
789965862899686b7f4bc4bcdc5c3df2e02900064e94951b45058921696a199e
|
|
BLAKE2b-256 checksum How to use checksums |
1ad7c8385a39d6f96cef3c455eb7792c96ed415873d4bae3568c2acc3789c72d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Windows/11
|