Interpolate points on an n-dimensional line by euclidean arc length
Project description
nd_line
interpolate points on an n-dimensional line by euclidean arc length
Usage
from nd_line import nd_line
ln = nd_line(points) (where points is an array like with rows = points and columns = dimensions. An array with three points in 4 dimensions would have 3 rows and 4 colums)
methods:
-
ln.interp(dist) returns a point dist length along the arc of the line
-
ln.interp_rat(ratio) ratio should be a value between 0 and 1, returns a value ratio*length along the line
-
ln.splineify(samples) generates a new line from a spline approximation, occurs in place, use samples to specify how many points will be sampled from the splines to generate the new line
attributes:
- ln.points: the points of the line
- ln.length: the length of the line
- ln.type: linear if not spline approximated, spline otherwise
Notes
Currently points must be sampled one at a time, future version will allow interpolation of a list of distances along the line
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
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 nd_line-0.1.2.tar.gz.
File metadata
- Download URL: nd_line-0.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c4da84eadc50f93d1fa23c74688157f1704b49c2562b940a5c39bb09da89cc4
|
|
| MD5 |
a1d34fe0c0d02a06b8d31497f7ca15f5
|
|
| BLAKE2b-256 |
4efb4eb4dba5a45b750c1b1a3715339e0fea757da9d3cc5d52b1ff5eba7ad5ae
|
File details
Details for the file nd_line-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nd_line-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5c896cd6e843d0e4116db02c410d9639c0bd50fbc2e07d8627a8cc432b1292e
|
|
| MD5 |
56e85172701c331bbc5c6f22be0f6070
|
|
| BLAKE2b-256 |
46680279c9acf263b06bb99ec964313de661aad577e3722dfd0015f8e67e06d0
|