示例#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
文件: Sphere.cpp 项目: juj/MathGeoLib
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
文件: Triangle.cpp 项目: katik/naali
bool Triangle::Intersects(const Capsule &capsule) const
{
    return capsule.Intersects(*this);
}