public void Clear() { InnerHole.Clear(); InnerPolygon.Clear(); OuterPolygon.Clear(); Geometry.Clear(); }
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(); }
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_); }