fabex.utilities.slope_utils

fabex.utilities.slope_utils#

Functions#

find_slope(p1, p2)

returns slope of a vector

slope_array(loop)

Returns an array of slopes from loop coordinates.

d_slope_array(loop[, resolution])

Returns a double derivative array or slope of the slope

Module Contents#

find_slope(p1, p2)[source]#

returns slope of a vector

Parameters:
  • p1 (tuple) – point 1 x,y coordinates

  • p2 (tuple) – point 2 x,y coordinates

slope_array(loop)[source]#

Returns an array of slopes from loop coordinates.

Parameters:

loop (list of tuples) – list of coordinates for a curve

d_slope_array(loop, resolution=0.001)[source]#

Returns a double derivative array or slope of the slope

Parameters:
  • loop (list of tuples) – list of coordinates for a curve

  • resolution (float) – granular resolution of the array