MCPcopy Create free account
hub / github.com/carbonengine/trinity / PyGetValueDoubleDotAt

Method PyGetValueDoubleDotAt

trinity/TriSequencer.cpp:245–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244#if BLUE_WITH_PYTHON
245PyObject* TriVectorSequencer::PyGetValueDoubleDotAt( PyObject* args )
246{
247 PyObject* t;
248 if( !PyArg_ParseTuple( args, "O", &t ) )
249 return NULL;
250
251 ITriVectorPtr q;
252 q.Attach( new OTriVector );
253
254 if( PyLong_Check( t ) )
255 {
256 Vector3 temp;
257 q->SetVector( GetValueDoubleDotAt( &temp, (Be::Time)PyLong_AsLongLong( t ) ) );
258 }
259 else if( PyFloat_Check( t ) )
260 {
261 Vector3 temp;
262 q->SetVector( GetValueDoubleDotAt( &temp, PyFloat_AS_DOUBLE( t ) ) );
263 }
264 else
265 {
266 BeOS->SetError( BEDEF, Clsid(), "arg must be of type LongLong (Be::Time) or float" );
267 return nullptr;
268 }
269 return PyOS->WrapBlueObject( q );
270}
271#endif
272
273

Callers

nothing calls this directly

Calls 2

AttachMethod · 0.45
SetVectorMethod · 0.45

Tested by

no test coverage detected