calculate land startpoint, endpoint and center estimate when it is updated, it not every time they are needed

This commit is contained in:
UbitUmarov
2015-12-14 11:57:24 +00:00
parent ca6b5fc80d
commit 2a354f6c28
3 changed files with 65 additions and 79 deletions

View File

@@ -50,16 +50,19 @@ namespace OpenSim.Framework
IPrimCounts PrimCounts { get; set; }
/// <summary>
/// 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.
/// </summary>
Vector3 StartPoint { get; }
Vector2 StartPoint { get; }
/// <summary>
/// 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.
/// </summary>
Vector3 EndPoint { get; }
Vector2 EndPoint { get; }
// a estimation of a parcel center.
Vector2 CenterPoint { get; }
bool ContainsPoint(int x, int y);