Пример #1
0
    def ensure(thing):
        """If thing is not a DVec, construct a DVec containging thing.

        Returns:
           thing if already a DVec, other a newly-constructed DVec.
        """
        return ensure(thing, DVec)
Пример #2
0
Файл: tf.py Проект: dyalab/amino
 def ensure(thing):
     """Ensures thing is a DualQuat.  If it's not, convert it."""
     return ensure(thing, DualQuat)
Пример #3
0
Файл: tf.py Проект: dyalab/amino
 def ensure(thing):
     """Ensures thing is a TfMat.  If it's not, convert it."""
     return ensure(thing, TfMat)
Пример #4
0
Файл: tf.py Проект: dyalab/amino
 def ensure(thing):
     """Ensures thing is a Vec3.  If it's not, convert it."""
     return ensure(thing, Vec3)
Пример #5
0
Файл: tf.py Проект: dyalab/amino
 def ensure(thing):
     """Ensures thing is a QuatTrans.  If it's not, convert it."""
     return ensure(thing, QuatTrans)