Jelajahi Sumber

*** empty log message ***

Dave Schuyler 20 tahun lalu
induk
melakukan
f90284cd6c

+ 15 - 0
direct/src/extensions_native/VBase3_extensions.py

@@ -0,0 +1,15 @@
+"""
+Methods to extend functionality of the VBase3 class
+"""
+
+from extension_native_helpers import *
+from libpanda import *
+
+
+def pPrintValues(self):
+    """
+    Pretty print
+    """
+    return "% 10.4f, % 10.4f, % 10.4f" % (self[0],self[1],self[2])
+Dtool_funcToMethod(pPrintValues, VBase3)
+del pPrintValues

+ 15 - 0
direct/src/extensions_native/VBase4_extensions.py

@@ -0,0 +1,15 @@
+"""
+Methods to extend functionality of the VBase4 class
+"""
+
+from extension_native_helpers import *
+from libpanda import *
+
+
+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