mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
minor: Remove some mono compiler warnings in OpenSim.Framework.dll
This commit is contained in:
@@ -303,12 +303,12 @@ namespace OpenSim.Framework
|
||||
// Clamp the maximum magnitude of a vector
|
||||
public static Vector3 ClampV(Vector3 x, float max)
|
||||
{
|
||||
Vector3 ret = x;
|
||||
float lenSq = x.LengthSquared();
|
||||
if (lenSq > (max * max))
|
||||
{
|
||||
x = x / x.Length() * max;
|
||||
}
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user