Example #1
0
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);
}
Example #2
0
float float3::Distance(const Capsule &rhs) const { return rhs.Distance(*this); }
Example #3
0
float Sphere::Distance(const Capsule &capsule) const
{
	return capsule.Distance(*this);
}
Example #4
0
float float3::Distance(const Capsule &rhs) const { return rhs.Distance(POINT_VEC(*this)); }