Find overlapping points of two rows in the devexpress table

As you can see, I have a winform chart (DevExpress Chart) with two series. Each series has its own points. And I want to find the overlapping points of these two series (indicated by the green circle in the picture).enter image description here

For example (3.4 for the first overlap point and 7.3 for the second overlap point).
Thanks.

+6
source share
2 answers

If you have direct access to the collection Series, you can:

var intersection = Series[0].Points.Intersect(Series[1].Points);

If you create discrete objects Pointalong the way, you may also need to define matching behavior.

+5

, . , , . -, (N log N) (N - ). , , # ( ++, #)

, , O (N) ( "merge" )

0

Source: https://habr.com/ru/post/1015739/


All Articles