ELASTICPATHING/SOURCECODE/UbiComp2014/Get_Map_Code/lib-Dist.rb
#A container for the two splies that make up a lat/lon function. Can calculate individual points on the spline, or fill in the points between a range
A container for the two splies that make up a lat/lon function. Can calculate individual points on the spline, or fill in the points between a range
A container for the two splies that make up a lat / lon function . Can calculate individual points on the spline or fill in the points between a range
def find(lat,lon)
		lat_ind = @lat_spline.find(lat)
		lon_ind = @lon_spline.find(lon)
		return (lat_ind + lon_ind)/2.0
	end
def find ( lat , lon ) lat_ind = @lat_spline . find ( lat ) lon_ind = @lon_spline . find ( lon ) return ( lat_ind + lon_ind ) / 2.0 end
A container for the two splies that make up a lat/lon function.
A container for the two splies that make up a lat / lon function .
#lat/lon are floats, the average of what the find fuction returns will be what we delcare is the independant varable.
lat
lon