示例#1
0
 /// <summary>
 /// Sets flag bit(s)
 /// </summary>
 /// <param name="flag">The flag bit(s) to set</param>
 /// <param name="setting">True to set, false to clear</param>
 void SetFlag(IntersectionFlag flag, bool setting)
 {
     if (setting)
     {
         m_Flag |= flag;
     }
     else
     {
         m_Flag &= (~flag);
     }
 }
示例#2
0
 /// <summary>
 /// Creates a new <c>Intersection</c> at the specified position.
 /// </summary>
 /// <param name="p">The position of the intersection</param>
 internal Intersection(PointGeometry p)
     : base(p)
 {
     m_Lines = new List<LineFeature>(2);
     m_Flag = 0;
 }
示例#3
0
 /// <summary>
 /// Sets flag bit(s)
 /// </summary>
 /// <param name="flag">The flag bit(s) to set</param>
 /// <param name="setting">True to set, false to clear</param>
 void SetFlag(IntersectionFlag flag, bool setting)
 {
     if (setting)
         m_Flag |= flag;
     else
         m_Flag &= (~flag);
 }
示例#4
0
 /// <summary>
 /// Is a flag bit set?
 /// </summary>
 /// <param name="flag">The flag(s) to check for (may be a combination of more
 /// than one flag)</param>
 /// <returns>True if any of the supplied flag bits are set</returns>
 bool IsFlagSet(IntersectionFlag flag)
 {
     return ((m_Flag & flag)!=0);
 }
示例#5
0
 /// <summary>
 /// Creates a new <c>Intersection</c> at the specified position.
 /// </summary>
 /// <param name="p">The position of the intersection</param>
 internal Intersection(PointGeometry p)
     : base(p)
 {
     m_Lines = new List <LineFeature>(2);
     m_Flag  = 0;
 }
示例#6
0
 /// <summary>
 /// Is a flag bit set?
 /// </summary>
 /// <param name="flag">The flag(s) to check for (may be a combination of more
 /// than one flag)</param>
 /// <returns>True if any of the supplied flag bits are set</returns>
 bool IsFlagSet(IntersectionFlag flag)
 {
     return((m_Flag & flag) != 0);
 }