aboutsummaryrefslogtreecommitdiff
path: root/Lib/fontTools/misc/arrayTools.py
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-08-16 16:00:14 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-08-19 14:17:11 -0400
commit843ffd8c795e9b75aac51226f01e23c0703555f3 (patch)
tree84942217a690614a988ef0209d4464c517f80858 /Lib/fontTools/misc/arrayTools.py
parent4f033683ca79093de30b62f5a3b87c2c466496f0 (diff)
downloadfonttools-843ffd8c795e9b75aac51226f01e23c0703555f3.tar.gz
Port glyf coordinates from numpy to custom type
Diffstat (limited to 'Lib/fontTools/misc/arrayTools.py')
-rw-r--r--Lib/fontTools/misc/arrayTools.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/fontTools/misc/arrayTools.py b/Lib/fontTools/misc/arrayTools.py
index 58cac006..3f39e7e4 100644
--- a/Lib/fontTools/misc/arrayTools.py
+++ b/Lib/fontTools/misc/arrayTools.py
@@ -6,13 +6,6 @@
import math
-def matMult(a,b):
- """Returns the matrix multiplication of two matrices. Matrices
- are represented as lists of lists, row-major."""
- r1 = range(len(a[0]))
- r2 = range(len(b[0]))
- return [[sum(r[i]*b[i][j] for i in r1) for j in r2] for r in a]
-
def calcBounds(array):
"""Return the bounding rectangle of a 2D points array as a tuple:
(xMin, yMin, xMax, yMax)