The Edge class provides functionality to handle a list of coordinates corresponding to one footprint edge.
USAGE
-----
ed = Edge(x_array, y_array)
Parameters
----------
x_array: Array of x-coordinates of a footprint edge.
y_array: Array of y-coordinates of the same footprint edge.
Set the function attribute to the string function_name. The possible values are: polynomial, legendre or chebyshev.
Set the order attribute to the integer value giving by the parameter new_order.
Fit the (x_array,y_array) using the current fitting function and order. The fitting coefficients are stored in the class attribute coefficients and the evaluator function in evalfunction attribute.
Usage
# Instantiate an Edge object with the coordinates tuple corresponding to one edge.
ed = Edge(x_array, y_array)
# Set the orientation of the edge to be vertical.
ed.orientation = 90
# Fit a function.
ed.fitfunction()
# print the resulting coefficients
print ed.coefficients
# print the difference between one point in the edge and the function value
# at the point.
print ed.evalfunction(y_array[10]) - x_array[10]