예제 #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)