class_intersection - AiAUJI/PAUSETA GitHub Wiki

Intersection

Description

Represents the union of several segments. A roundabout, a crossroad, a change of route...

Member functions

  • Intersection()
  • Intersection(ArrayList<Segment> in, ArrayList<Segment> out)
  • addInSegment(Segment segment)
  • addOutSegment(Segment segment)

Member variables

  • ArrayList<Segment> in
  • ArrayList<Segment> out

Member functions description

Intersection()
Default constructor.

Intersection(ArrayList<Segment> in, ArrayList<Segment> out)
Constructor.

addInSegment(Segment segment)
Adds an in segment to the intersection.

addOutSegment(Segment segment)
Adds an out segment to the intersection

Member variables description

ArrayList<Segment> in
List of segments that go inside the intersection.

ArrayList<Segment> out
List of segments that go otuside the intersection.

⚠️ **GitHub.com Fallback** ⚠️