ELASTICPATHING/SOURCECODE/UbiComp2014/Get_Map_Code/lib-Dist.rb
#A 2 point interpolation class. The interface is designed to mimic that of spline.
A 2 point interpolation class. The interface is designed to mimic that of spline.
A 2 point interpolation class . The interface is designed to mimic that of spline .
def eval_point(index)
		slope = deriv_point(index)
		return [@coords[@min_ind][0] + index * slope[0], @coords[@min_ind][1] + index * slope[1]]
	end
def eval_point ( index ) slope = deriv_point ( index ) return [ @coords [ @min_ind ] [ 0 ] + index * slope [ 0 ] , @coords [ @min_ind ] [ 1 ] + index * slope [ 1 ] ] end
A 2 point interpolation class.
A 2 point interpolation class .
#index is an integer, this is an equation fo the for y_1(1-t) + y_2(t) where t goes from (0 to 1)
index