aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 7eb5e77..77bb426 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1579,6 +1579,26 @@ namespace OpenSim.Region.ScriptEngine.Shared
1579 return new LSLFloat(f.value / (double)i); 1579 return new LSLFloat(f.value / (double)i);
1580 } 1580 }
1581 1581
1582 static public LSLFloat operator +(LSLFloat lhs, LSLFloat rhs)
1583 {
1584 return new LSLFloat(lhs.value + rhs.value);
1585 }
1586
1587 static public LSLFloat operator -(LSLFloat lhs, LSLFloat rhs)
1588 {
1589 return new LSLFloat(lhs.value - rhs.value);
1590 }
1591
1592 static public LSLFloat operator *(LSLFloat lhs, LSLFloat rhs)
1593 {
1594 return new LSLFloat(lhs.value * rhs.value);
1595 }
1596
1597 static public LSLFloat operator /(LSLFloat lhs, LSLFloat rhs)
1598 {
1599 return new LSLFloat(lhs.value / rhs.value);
1600 }
1601
1582 static public LSLFloat operator -(LSLFloat f) 1602 static public LSLFloat operator -(LSLFloat f)
1583 { 1603 {
1584 return new LSLFloat(-f.value); 1604 return new LSLFloat(-f.value);