示例#1
0
文件: mat.py 项目: dyalab/amino
    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)