Checks a point lays in a sector, which is given, by the line and a second direction. If you turn the direction of the line in the counterclockwise sense to the other direction you have a unique defined field. If the point lays in that field the the result is true else it is false. By the parameter 'allowBorder' you can include or exclude the border of the sector.
public bool inSector( xyDirection1, xypt, boolallowBorder );
Parameters
Direction1
Direction, which spans thogether with the point and the direction of the line a sector. You get the valid area, when you turn the direction of the line in counterclockwise sense to the direction1
pt
Point, which will be tested
allowBorder
If is true then for a point on border the result is true.
Return Value
Returns true if the point lays in the valid sectorfield