static QScriptValue Capsule_Distance_Capsule_const(QScriptContext *context, QScriptEngine *engine) { if (context->argumentCount() != 1) { printf("Error! Invalid number of arguments passed to function Capsule_Distance_Capsule_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()); Capsule capsule = qscriptvalue_cast<Capsule>(context->argument(0)); float ret = This.Distance(capsule); return qScriptValueFromValue(engine, ret); }
float float3::Distance(const Capsule &rhs) const { return rhs.Distance(*this); }
float Sphere::Distance(const Capsule &capsule) const { return capsule.Distance(*this); }
float float3::Distance(const Capsule &rhs) const { return rhs.Distance(POINT_VEC(*this)); }