Checks, if a point pt lies in a sector, which is given by the line (of this) and a second vector direction1. If you turn the direction of the line (this) in the counterclockwise sense to the other direction( direction1), you have a unique defined field. If the point is located inside this field, the result is true, otherwise it is false. By the parameter 'allowBorder' you can include or exclude the border of the sector.
Public Sub inSector( _
inSector( xy Direction1
, xy pt
, bool allowBorder
- Direction, which spans together with the point this.P and the direction of the line (this) a sector. You get the valid area if you turn the direction of the line in counterclockwise sense to the direction1
- Point which will be tested
- If it is true a point on border results true.
Returns true, if the point lies in the valid sector field
LineType2d Class | Drawing3d.Math Namespace