Skip to content
Snippets Groups Projects
Commit b1d757f3 authored by Vedrana Andersen Dahl's avatar Vedrana Andersen Dahl
Browse files

Update snake_functions.py

parent e9e44df1
No related branches found
No related tags found
No related merge requests found
"""
Helping functions for snakes.
Note that snake here is 2-by-N array!
"""
import numpy as np
import scipy.interpolate
def distribute_points(snake):
""" Distributes snake points equidistantly."""
""" Distributes snake points equidistantly. Expects snake to be 2-by-N array."""
N = snake.shape[1]
# Compute length of line segments.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment