Given a set of discrete points in 3D space (with at least three non-collinear points), fit a plane using these points.
Project description
fit_3d_plane
Given a set of discrete points in 3D space (with at least three non-collinear points), fit a plane using these points.
Installation
pip install fit_3d_plane
Usage
from fit_3d_plane import fit_3d_plane
# Test 3D points (these points lie on the z=0 plane)
test_points = [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[1, 1, 0],
[2, 3, 0]
]
# Fit plane
normal_vector, plane_eq = fit_3d_plane(test_points)
# Print results
print(f"Fitted plane normal vector: {normal_vector}")
print(f"Plane equation: {plane_eq[0]:.6f}x + {plane_eq[1]:.6f}y + {plane_eq[2]:.6f}z + {plane_eq[3]:.6f} = 0")
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
fit_3d_plane-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 fit_3d_plane-0.1.0.tar.gz.
File metadata
- Download URL: fit_3d_plane-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 |
a12f96059d1a299f930f9d8bc52da9a3ac624bdfffabf0c6edac916710bc66be
|
|
| MD5 |
e1f2e66a4ea54f0f473d742e2db52aac
|
|
| BLAKE2b-256 |
357f79ff84d3801f8622d3d1631a9ec6e72d0dbffb32e9eff38b3bdbd0d1fdd8
|
File details
Details for the file fit_3d_plane-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fit_3d_plane-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 |
2b044d6c1afb57a097f8237924897f13716ee5fa23ccf59e3978ee072c64f611
|
|
| MD5 |
3b79b44dca1d44bbbd4391be6e6a2043
|
|
| BLAKE2b-256 |
73718e150074850008efd1dea0f79136a9bacb405ad8cde6dc4b3b2f1c1c7828
|