mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
21 lines
514 B
Python
21 lines
514 B
Python
"""
|
|
Methods to extend functionality of the VBase4 class
|
|
"""
|
|
|
|
def pPrintValues(self):
|
|
"""
|
|
Pretty print
|
|
"""
|
|
return "% 10.4f, % 10.4f, % 10.4f, % 10.4f" % (self[0], self[1], self[2], self[3])
|
|
Dtool_funcToMethod(pPrintValues, VBase4)
|
|
del pPrintValues
|
|
|
|
def asTuple(self):
|
|
"""
|
|
Returns the vector as a tuple.
|
|
"""
|
|
print "Warning: VBase4.asTuple() is no longer needed and deprecated. Use the vector directly instead."
|
|
return tuple(self)
|
|
|
|
Dtool_funcToMethod(asTuple, VBase4)
|
|
del asTuple
|