lib/tracksperanto/uv_coordinates.rb in tracksperanto-2.8.6 vs lib/tracksperanto/uv_coordinates.rb in tracksperanto-2.9.0

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- # Syntheyes and some other apps use a relative UV coordinate sustem. For Syntheyes, zero is at the # optical center of the image, and goes positive right and up. Since Tracksperanto works in absolute # pixels we need to convert to and fro. module Tracksperanto::UVCoordinates @@ -17,6 +18,6 @@ def convert_from_uv(absolute_side, uv_value) # First, start from zero (-.1 becomes .4) value_off_corner = (uv_value.to_f / 2) + 0.5 absolute_side * value_off_corner end -end \ No newline at end of file +end