X296

ISOGONAL CONJUGATE OF X243

< 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) { 29, 65 }: Central Line L(29, 65) { 1, 185 }: Central Line L(1, 185) { 109, 284 }: Central Line L(109, 284) { 3, 820 }: Central Line L(3, 820) { 77, 1364 }: Central Line L(77, 1364) { 283, 1813 }: Central Line L(283, 1813) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_243 = -LINE CONJUGATE OF X(73) (0.7516, 0.9505) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_1 = INCENTER (0.5714, 0.2333) X_185 = NAGEL POINT OF THE ORTHIC TRIANGLE (0.6033, 0.1643) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_820 = CROSSPOINT OF X(1) AND X(255) (0.5413, 0.0659) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_1364 = BRISSE TRANSFORM OF X(108) (0.5367, 0.6071) X_283 = -CROSS CONJUGATE OF X(21) (0.4475, 0.0704) X_1813 = INVERSE MIMOSA TRANSFORM OF X(650) (-0.1088, 0.3999) X_296 = ISOGONAL CONJUGATE OF X(243) (0.7214, -0.0918) A B C X243 X29 X65 X1 X185 X109 X284 X3 X820 X77 X1364 X283 X1813 X296 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_296 = ISOGONAL CONJUGATE OF X_243."""

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


        def construct_x_00296(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_296 = ISOGONAL CONJUGATE OF X_243 on reference triangle ABC."""
            X_243 = eval_trilinear_point(model, A, B, C, '(sec(A))*((cos(A))**(2) - cos(B)*cos(C))', ID="X_243", classes=["center"])
            X_296 = isogonal_conjugate(model, A, B, C, X_243, ID="X_296", classes=["selected", "target"])
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_29, X_65, 29, 65, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_185 = eval_trilinear_point(model, A, B, C, '(cos(A))*(1 - cos(A)*cos(B - C))', ID="X_185", classes=["center", "incident"])
            central_line(model, X_1, X_185, 1, 185, incident=True)
            X_109 = eval_trilinear_point(model, A, B, C, 'a/(cos(B) - cos(C))', ID="X_109", classes=["center", "incident"])
            X_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center", "incident"])
            central_line(model, X_109, X_284, 109, 284, incident=True)
            return promote_point_to_top(model, X_296)


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