mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user