Ejemplo n.º 1
0
    def orthocenter(self):
        """The orthocenter of the triangle.

        The orthocenter is the intersection of the altitudes of a triangle.

        Returns
        -------
        orthocenter : Point

        See Also
        --------
        Point

        Examples
        --------
        >>> from sympy.geometry import Point, Triangle
        >>> p1, p2, p3 = Point(0, 0), Point(1, 0), Point(0, 1)
        >>> t = Triangle(p1, p2, p3)

        """
        a = self.altitudes
        return GeometryEntity.intersect(a[1], a[2])[0]
Ejemplo n.º 2
0
    def orthocenter(self):
        """The orthocenter of the triangle.

        The orthocenter is the intersection of the altitudes of a triangle.

        Returns
        -------
        orthocenter : Point

        See Also
        --------
        Point

        Examples
        --------
        >>> from sympy.geometry import Point, Triangle
        >>> p1, p2, p3 = Point(0, 0), Point(1, 0), Point(0, 1)
        >>> t = Triangle(p1, p2, p3)

        """
        a = self.altitudes
        return GeometryEntity.intersect(a[1], a[2])[0]
Ejemplo n.º 3
0
 def orthocenter(self):
     """The orthocenter of the triangle."""
     a = self.altitudes
     return GeometryEntity.intersect(a[1], a[2])[0]