X870

ISOGONAL CONJUGATE OF X869

< A B C >: Reference Triangle △ABC [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) { 1, 76 }: Central Line L(1, 76) { 6, 75 }: Central Line L(6, 75) { 56, 85 }: Central Line L(56, 85) { 2, 292 }: Central Line L(2, 292) { 58, 274 }: Central Line L(58, 274) { 34, 331 }: Central Line L(34, 331) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_869 = INTERSECTION OF LINES X(1)X(2) AND X(31)X(32) (0.6039, 0.2651) X_1 = INCENTER (0.5714, 0.2333) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_85 = ISOTOMIC CONJUGATE OF X(9) (0.5610, 0.2421) X_2 = CENTROID (0.5374, 0.2000) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_274 = ISOGONAL CONJUGATE OF X(213) (0.5168, 0.1843) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_331 = ISOTOMIC CONJUGATE OF X(219) (0.6062, 0.4046) X_870 = ISOGONAL CONJUGATE OF X(869) (0.5328, 0.2015) A B C X869 X1 X76 X6 X75 X56 X85 X2 X292 X58 X274 X34 X331 X870 (a, b, c) = (5, 6, 7) | AB = 1

X870 (ISOGONAL CONJUGATE OF X869) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_870 = ISOGONAL CONJUGATE OF X_869."""

        from __future__ import annotations

        from pathlib import Path

        import sympy.geometry as spg
        from geometor.model import Model

        from geometor.etc.ops import (
            central_line,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            isogonal_conjugate,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00870(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_870 = ISOGONAL CONJUGATE OF X_869 on reference triangle ABC."""
            X_869 = eval_trilinear_point(model, A, B, C, '(a**(2)*(b**(2) + c**(2) + b*c))', ID="X_869", classes=["center"])
            X_870 = isogonal_conjugate(model, A, B, C, X_869, ID="X_870", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            central_line(model, X_1, X_76, 1, 76, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            central_line(model, X_6, X_75, 6, 75, incident=True)
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            X_85 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)/(b + c - a)', ID="X_85", classes=["center", "incident"])
            central_line(model, X_56, X_85, 56, 85, incident=True)
            return promote_point_to_top(model, X_870)


        def build_model(
            sides: tuple[float, float, float] = (5.0, 6.0, 7.0),
            show_guides: bool = False,
        ) -> Model:
            """Build a `geometor.model.Model` for X_870 on the given reference triangle."""
            model = create_model('X_870 = ISOGONAL CONJUGATE OF X_869')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00870(model, A, B, C)
            return model


        if __name__ == "__main__":
            here = Path(__file__).resolve().parent
            model_acute = build_model((5.0, 6.0, 7.0))
            model_acute.save(str(here / "x-00870.json"))
            write_center_svg(
                model_acute,
                here / "x-00870.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )