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")
Metadata
Release files for fit-3d-plane 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 | Provenance | Actions |
|---|---|---|---|---|
| fit_3d_plane-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for fit_3d_plane-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fit_3d_plane-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fit_3d_plane-0.1.0-py3-none-any.whl |
Total release size: 6.0 kB
Release files / fit_3d_plane-0.1.0.tar.gz
| Download URL | fit_3d_plane-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a12f96059d1a299f930f9d8bc52da9a3ac624bdfffabf0c6edac916710bc66be
|
|
BLAKE2b-256 checksum How to use checksums |
357f79ff84d3801f8622d3d1631a9ec6e72d0dbffb32e9eff38b3bdbd0d1fdd8
|
| 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 / fit_3d_plane-0.1.0-py3-none-any.whl
| Download URL | fit_3d_plane-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b044d6c1afb57a097f8237924897f13716ee5fa23ccf59e3978ee072c64f611
|
|
BLAKE2b-256 checksum How to use checksums |
73718e150074850008efd1dea0f79136a9bacb405ad8cde6dc4b3b2f1c1c7828
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Windows/11
|
Security for fit-3d-plane 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.