29 using System.Collections.Generic;
33 namespace OpenSim.
Region.Framework.Scenes
40 public Vector3 BorderLine = Vector3.Zero;
46 public uint TriggerRegionX = 0;
47 public uint TriggerRegionY = 0;
74 public Border(
float lineStart,
float lineEnd,
float triggerCoordinate, uint triggerRegionX,
77 BorderLine =
new Vector3(lineStart,lineEnd,triggerCoordinate);
78 CrossDirection = direction;
79 TriggerRegionX = triggerRegionX;
80 TriggerRegionY = triggerRegionY;
90 switch (CrossDirection)
93 if (position.X >= BorderLine.X && position.X <= BorderLine.Y && position.Y > BorderLine.Z)
101 if (position.Y >= BorderLine.X && position.Y <= BorderLine.Y && position.X > BorderLine.Z)
109 if (position.X >= BorderLine.X && position.X <= BorderLine.Y && position.Y < BorderLine.Z)
117 if (position.Y >= BorderLine.X && position.Y <= BorderLine.Y && position.X < BorderLine.Z)
133 switch (CrossDirection)
bool TestCross(Vector3 position)
Tests to see if the given position would cross this border.
Border(float lineStart, float lineEnd, float triggerCoordinate, uint triggerRegionX, uint triggerRegionY, Cardinals direction)
Creates a Border. The line is perpendicular to the direction cardinal. IE: if the direction cardinal ...