| 295 | |
| 296 | |
| 297 | PyObject* ITriQuaternionFunction_Thunk::PyGetQuaternionDotAt( PyObject* args ) |
| 298 | { |
| 299 | PyObject* t; |
| 300 | if( !PyArg_ParseTuple( args, "O", &t ) ) |
| 301 | return NULL; |
| 302 | |
| 303 | ITriQuaternionPtr q; |
| 304 | q.Attach( new OTriQuaternion ); |
| 305 | |
| 306 | if( PyLong_Check( t ) ) |
| 307 | { |
| 308 | Quaternion tmpResult; |
| 309 | q->SetQuaternion( GetValueDotAt( &tmpResult, Be::Time( PyLong_AsLongLong( t ) ) ) ); |
| 310 | } |
| 311 | else if( PyFloat_Check( t ) ) |
| 312 | { |
| 313 | Quaternion tmpResult; |
| 314 | q->SetQuaternion( GetValueDotAt( &tmpResult, PyFloat_AS_DOUBLE( t ) ) ); |
| 315 | } |
| 316 | else |
| 317 | { |
| 318 | BeOS->SetError( BEDEF, Clsid(), "arg must be of type LongLong (Be::Time) or float" ); |
| 319 | return nullptr; |
| 320 | } |
| 321 | return PyOS->WrapBlueObject( q ); |
| 322 | } |
| 323 | |
| 324 | |
| 325 | PyObject* ITriQuaternionFunction_Thunk::PyGetQuaternionDoubleDotAt( PyObject* args ) |
nothing calls this directly
no test coverage detected