From 909309302c83423994e9c1dd36a3309890a67b90 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Tue, 17 May 2011 16:58:36 -0400 Subject: added documentation --- transform.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'transform.py') diff --git a/transform.py b/transform.py index 4e5eb9c..cab23fb 100644 --- a/transform.py +++ b/transform.py @@ -1,6 +1,12 @@ import numpy as np def rotate(x, phi, n): + """ + Rotate an array of points `x` through an angle phi counter-clockwise + around the axis `n` (when looking towards +infinity). + + Source: Weisstein, Eric W. "Rotation Formula." Mathworld. + """ x = np.asarray(x) n = np.asarray(n) -- cgit