Compute the translation and rotation of a point-normal plane in 3D space.
Project description
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))
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
rotate_plane_3d-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rotate_plane_3d-0.1.0.tar.gz.
File metadata
- Download URL: rotate_plane_3d-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17b47ad2fd3afaf2fdf1b3c5a674418677d02af89353c09e46413cb176306454
|
|
| MD5 |
0b634bfa5417d1c5bc7a26d11289d231
|
|
| BLAKE2b-256 |
fe837d2d9ce196329aeede24ecd96186207c6e0169763bae473f646255fd65db
|
File details
Details for the file rotate_plane_3d-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rotate_plane_3d-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
789965862899686b7f4bc4bcdc5c3df2e02900064e94951b45058921696a199e
|
|
| MD5 |
78d1988336f6a218831da6f4a6b2554e
|
|
| BLAKE2b-256 |
1ad7c8385a39d6f96cef3c455eb7792c96ed415873d4bae3568c2acc3789c72d
|