public function arePerpendiculars(Line $line1, Line $line2)
    {
        if (self::areParallels($line1, $line2)) {
            return false;
        }
    }
public function arePerpendiculars(Line $line1, Line $line2)
    {
        if (self::areParallels($line1, $line2)) {
            return false;
        }
    }
public function arePerpendiculars ( Line $ line1 , Line $ line2 ) { if ( self :: areParallels ( $ line1 , $ line2 ) ) { return false ; } }
Test if two segments are perpendiculars

This will test it two lines are perpendiculars constructing a triangle and
testing if it is perpendicular

@param   \Maths\Geometry\Line     $line1
@param   \Maths\Geometry\Line     $line2
@return  bool
Test if two segments are perpendiculars