From 2a354f6c286b4b70e2768d9b267f53c3d391a10b Mon Sep 17 00:00:00 2001
From: UbitUmarov
Date: Mon, 14 Dec 2015 11:57:24 +0000
Subject: calculate land startpoint, endpoint and center estimate when it is
updated, it not every time they are needed
---
OpenSim/Framework/ILandObject.cs | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/ILandObject.cs b/OpenSim/Framework/ILandObject.cs
index ef7a9e6..7a50c2a 100644
--- a/OpenSim/Framework/ILandObject.cs
+++ b/OpenSim/Framework/ILandObject.cs
@@ -50,16 +50,19 @@ namespace OpenSim.Framework
IPrimCounts PrimCounts { get; set; }
///
- /// The start point for the land object. This is the western-most point as one scans land working from
- /// north to south.
+ /// The start point for the land object. This is the northern-most point as one scans land working from
+ /// west to east.
///
- Vector3 StartPoint { get; }
+ Vector2 StartPoint { get; }
///
- /// The end point for the land object. This is the eastern-most point as one scans land working from
- /// south to north.
+ /// The end point for the land object. This is the southern-most point as one scans land working from
+ /// west to east.
///
- Vector3 EndPoint { get; }
+ Vector2 EndPoint { get; }
+
+ // a estimation of a parcel center.
+ Vector2 CenterPoint { get; }
bool ContainsPoint(int x, int y);
--
cgit v1.1