Skip to main content

no description available

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 the interp method is not particularly efficient, and requires each point to be sampled individually, in the future I plan to address both of these limitations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nd_line-0.0.1-py2.py3-none-any.whl (15.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nd_line-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: nd_line-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for nd_line-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 616b01e548dd02b7ca0a78ef627a8c901dfa0304b2d0be424f662dfc81ed2ca8
MD5 5b1165303c3f34fb82a83cf67c6982be
BLAKE2b-256 5d03e4e8e1ebbb92eff621ebebb52aec6a9935d88e5a423edd253fd134e2a893

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page