.
The simplest way - requiring minimum calculations - is to calculate three slopes for every side of the triangle
and to check if there are two values of the slopes that are inversely opposite.
If you find such a pair, it means that the corresponding sides are perpendicular.
I will do it for you for the first three points.
slope(DE) = = = 2.
Slope(DF) = = = = .
(!) Stop at this point (!)
Slope(DE) has inversely opposite value "2" to slope(DF) value of " ".
Hence, the side DE is perpendicular to side DF.
Do other cases similarly.
Report your progress (!!)