Update triangle.class.php