Exemplo n.º 1
0
 public void Clear()
 {
     InnerHole.Clear();
     InnerPolygon.Clear();
     OuterPolygon.Clear();
     Geometry.Clear();
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (outerPolygon_ != null)
            {
                hash ^= OuterPolygon.GetHashCode();
            }
            hash ^= hole_.GetHashCode();
            return(hash);
        }
    public override void Clear()
    {
        base.Clear();

        if (OuterPolygon == null)
            OuterPolygon = new List<List<Vector2>>();
        else
            OuterPolygon.Clear();

        if (InnerHole == null)
            InnerHole = new List<List<Vector2>>();
        else
            InnerHole.Clear();
    }
Exemplo n.º 4
0
 public void MergeFrom(RoadBoundary other)
 {
     if (other == null)
     {
         return;
     }
     if (other.outerPolygon_ != null)
     {
         if (outerPolygon_ == null)
         {
             outerPolygon_ = new global::Apollo.Hdmap.BoundaryPolygon();
         }
         OuterPolygon.MergeFrom(other.OuterPolygon);
     }
     hole_.Add(other.hole_);
 }