示例#1
0
static QScriptValue Capsule_MinimalEnclosingAABB_const(QScriptContext *context, QScriptEngine *engine)
{
    if (context->argumentCount() != 0) { printf("Error! Invalid number of arguments passed to function Capsule_MinimalEnclosingAABB_const in file %s, line %d!\nExpected 0, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
    Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
    AABB ret = This.MinimalEnclosingAABB();
    return qScriptValueFromValue(engine, ret);
}
示例#2
0
bool AABB::Contains(const Capsule &capsule) const
{
	return Contains(capsule.MinimalEnclosingAABB());
}