Skip to main content

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)

Source distribution for fit-3d-plane 0.1.0
File Size Uploaded
fit_3d_plane-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fit-3d-plane 0.1.0
File Interpreter ABI Platform
fit_3d_plane-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page