added pPrintValues

This commit is contained in:
Dave Schuyler 2004-04-24 05:23:03 +00:00
parent dec4cb4bdb
commit 7b751e0273
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
"""
Mat3-extensions module: contains methods to extend functionality
of the LMatrix3f class.
"""
def __repr__(self):
return '%s(\n%s,\n%s,\n%s)' % (
self.__class__.__name__,self.getRow(0).pPrintValues(), self.getRow(1).pPrintValues(), self.getRow(2).pPrintValues())
def pPrintValues(self):
"""
Pretty print
"""
return "\n%s\n%s\n%s" % (
self.getRow(0).pPrintValues(), self.getRow(1).pPrintValues(), self.getRow(2).pPrintValues())