X1318

ISOGONAL CONJUGATE OF X1317

< 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) { 36, 106 }: Central Line L(36, 106) { 88, 517 }: Central Line L(88, 517) { 1, 1168 }: Central Line L(1, 1168) { 679, 1319 }: Central Line L(679, 1319) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1317 = REFLECTION OF X(11) IN X(1) (0.4082, 0.3999) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_106 = Λ(INCENTER, CENTROID) (1.0000, 0.0000) X_88 = ISOGONAL CONJUGATE OF X(44) (1.0000, 0.0000) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_1 = INCENTER (0.5714, 0.2333) X_1168 = 1st SARAGOSSA POINT OF X(36) (1.0000, 0.0000) X_679 = ISOGONAL CONJUGATE OF X(678) (1.0000, 0.0000) X_1319 = BEVAN-SCHRÖDER POINT (0.9524, 0.9331) X_1318 = ISOGONAL CONJUGATE OF X(1317) (1.0000, 0.0000) A B C X1317 X36 X106 X88 X517 X1 X1168 X679 X1319 X1318 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1318 = ISOGONAL CONJUGATE OF X_1317."""

        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,
            point_from_barycentrics,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01318(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1318 = ISOGONAL CONJUGATE OF X_1317 on reference triangle ABC."""
            X_1318 = eval_trilinear_point(model, A, B, C, '(a*(b + c - a)/(b + c - 2*a)**(2))', ID="X_1318", classes=["selected", "target"])
            X_36 = eval_trilinear_point(model, A, B, C, '1 - 2*cos(A)', ID="X_36", classes=["center", "incident"])
            X_106 = eval_trilinear_point(model, A, B, C, 'a/(2*a - b - c)', ID="X_106", classes=["center", "incident"])
            central_line(model, X_36, X_106, 36, 106, incident=True)
            X_88 = eval_trilinear_point(model, A, B, C, '1/(b + c - 2*a)', ID="X_88", classes=["center", "incident"])
            X_517 = eval_trilinear_point(model, A, B, C, '-1 + cos(B) + cos(C)', ID="X_517", classes=["center", "incident"])
            central_line(model, X_88, X_517, 88, 517, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_1168 = point_from_barycentrics(model, A, B, C, 4.7580987e-17, 1, 6.6613381e-17, ID="X_1168", classes=["center", "incident"])
            central_line(model, X_1, X_1168, 1, 1168, incident=True)
            return promote_point_to_top(model, X_1318)


        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_1318 on the given reference triangle."""
            model = create_model('X_1318 = ISOGONAL CONJUGATE OF X_1317')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01318(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-01318.json"))
            write_center_svg(
                model_acute,
                here / "x-01318.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )