From 2736307c1d6d67868ca54a3df951f9e959efedd0 Mon Sep 17 00:00:00 2001 From: rcoh Date: Mon, 20 Dec 2010 14:50:08 -0500 Subject: Util cleanup is done! Util.py is now refactored into the util module. Woo! RCOH --- pixelmappers/GaussianMapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pixelmappers/GaussianMapper.py') diff --git a/pixelmappers/GaussianMapper.py b/pixelmappers/GaussianMapper.py index 04bd447..e94235e 100644 --- a/pixelmappers/GaussianMapper.py +++ b/pixelmappers/GaussianMapper.py @@ -1,4 +1,5 @@ from operationscore.PixelMapper import * +import util.Geo as Geo import Util class GaussianMapper(PixelMapper): def mappingFunction(self, eventLocation, screen): @@ -6,8 +7,8 @@ class GaussianMapper(PixelMapper): [x,y] = eventLocation for (x,pixel) in screen.pixelsInRange(x-self['CutoffDist'], \ x+self['CutoffDist']): - pixelDist = Util.dist(pixel.location, eventLocation) + pixelDist = Geo.dist(pixel.location, eventLocation) if pixelDist < self['CutoffDist']: - w = Util.gaussian(pixelDist, self['Height'], 0, self['Width']) + w = Geo.gaussian(pixelDist, self['Height'], 0, self['Width']) returnPixels.append((pixel, w)) return returnPixels -- cgit v1.2.3