diff engine/python/fife/extensions/fife_math.py @ 495:ae9f5383f5b1

Added a new log module called Script. This should be used by the python modules. Did some code cleanup and comment cleanup. Added some more visible log modules to the shooter demo for fun.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 11 May 2010 21:30:55 +0000
parents e241d7553496
children c0c3f64bfc2d
line wrap: on
line diff
--- a/engine/python/fife/extensions/fife_math.py	Mon May 10 15:54:21 2010 +0000
+++ b/engine/python/fife/extensions/fife_math.py	Tue May 11 21:30:55 2010 +0000
@@ -21,9 +21,6 @@
 #  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 # ####################################################################
 
-from fife import fife
-import math
-
 """
 Math Library
 ==================================
@@ -31,6 +28,8 @@
 This is a collection of useful 2D math functions/classes.
 """
 
+from fife import fife
+import math
 
 def normalize(vector):
 	"""
@@ -145,14 +144,14 @@
 	"""
 	Rotates a point around the specified origin.
 	
-	@param origin: A L{fife.DoublePoint} specifying the origin.
+	@param origin: A point specifying the origin.
 	@type origin: L{fife.DoublePoint}
-	@param point: A L{fife.DoublePoint} to be rotated.
+	@param point: The point to be rotated.
 	@type point: L{fife.DoublePoint}
 	@param angle: The angle in which to rotate the point.
 	@type angle: C{int} or C{float}
 	
-	@return: A L{fife.DoublePoint} representing the rotated point.
+	@return: The rotated point.
 	@rtype: L{fife.DoublePoint}
 	"""
 	newp = fife.DoublePoint(0,0)