Пример #1
0
static QScriptValue Capsule_Intersects_Polyhedron_const(QScriptContext *context, QScriptEngine *engine)
{
    if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Capsule_Intersects_Polyhedron_const in file %s, line %d!\nExpected 1, but got %d!\n", __FILE__, __LINE__, context->argumentCount()); PrintCallStack(context->backtrace()); return QScriptValue(); }
    Capsule This = qscriptvalue_cast<Capsule>(context->thisObject());
    Polyhedron polyhedron = qscriptvalue_cast<Polyhedron>(context->argument(0));
    bool ret = This.Intersects(polyhedron);
    return qScriptValueFromValue(engine, ret);
}
Пример #2
0
bool Sphere::Intersects(const Capsule &capsule) const
{
	return capsule.Intersects(*this);
}
Пример #3
0
bool AABB::Intersects(const Capsule &capsule) const
{
	return capsule.Intersects(*this);
}
Пример #4
0
bool Triangle::Intersects(const Capsule &capsule) const
{
    return capsule.Intersects(*this);
}