add auxiliar functions float osVecMagSquare(a), float osVecDistSquare(vector a), float osAngleBetween(vector a, vector b) and float osRound(ffloat value, integer ndigits)

This commit is contained in:
UbitUmarov
2018-04-03 23:00:37 +01:00
parent 86d8f2af5b
commit e031d79d48
4 changed files with 60 additions and 0 deletions

View File

@@ -1195,5 +1195,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
return m_OSSL_Functions.osGetLinkNumber(name);
}
public LSL_Float osRound(LSL_Float value, LSL_Integer digits)
{
return m_OSSL_Functions.osRound(value, digits);
}
public LSL_Float osVecMagSquare(vector a)
{
return m_OSSL_Functions.osVecMagSquare(a);
}
public LSL_Float osVecDistSquare(vector a, vector b)
{
return m_OSSL_Functions.osVecDistSquare(a, b);
}
public LSL_Float osAngleBetween(vector a, vector b)
{
return m_OSSL_Functions.osAngleBetween(a, b);
}
}
}