mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
c7df854f7a
commit
f90284cd6c
15
direct/src/extensions_native/VBase3_extensions.py
Executable file
15
direct/src/extensions_native/VBase3_extensions.py
Executable file
@ -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
direct/src/extensions_native/VBase4_extensions.py
Executable file
15
direct/src/extensions_native/VBase4_extensions.py
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user