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); }
bool Sphere::Intersects(const Capsule &capsule) const { return capsule.Intersects(*this); }
bool AABB::Intersects(const Capsule &capsule) const { return capsule.Intersects(*this); }
bool Triangle::Intersects(const Capsule &capsule) const { return capsule.Intersects(*this); }