X1257

ISOGONAL CONJUGATE OF X1104

< 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) { 28, 72 }: Central Line L(28, 72) { 57, 78 }: Central Line L(57, 78) { 8, 278 }: Central Line L(8, 278) { 69, 279 }: Central Line L(69, 279) { 105, 960 }: Central Line L(105, 960) { 200, 1254 }: Central Line L(200, 1254) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1104 = CROSSPOINT OF X(1) AND X(28) (0.6311, 0.3042) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_8 = NAGEL POINT (0.4694, 0.1333) X_278 = ISOGONAL CONJUGATE OF X(219) (0.6278, 0.4577) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_279 = ISOGONAL CONJUGATE OF X(220) (0.6236, 0.3540) X_105 = Λ(INCENTER, SYMMEDIAN POINT) (0.9714, -0.0933) X_960 = INTERSECTION OF LINES X(1)X(6) AND X(5)X(10) (0.5041, 0.1533) X_200 = -CEVA CONJUGATE OF X(9) (0.4392, 0.1037) X_1254 = ISOGONAL CONJUGATE OF X(1098) (0.6258, 0.3523) X_1257 = ISOGONAL CONJUGATE OF X(1104) (0.4843, 0.1638) A B C X1104 X28 X72 X57 X78 X8 X278 X69 X279 X105 X960 X200 X1254 X1257 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1257 = ISOGONAL CONJUGATE OF X_1104."""

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


        def construct_x_01257(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1257 = ISOGONAL CONJUGATE OF X_1104 on reference triangle ABC."""
            X_1104 = point_from_barycentrics(model, A, B, C, 0.17229255, 0.32067511, 0.50703235, ID="X_1104", classes=["center"])
            X_1257 = isogonal_conjugate(model, A, B, C, X_1104, ID="X_1257", classes=["selected", "target"])
            X_28 = eval_trilinear_point(model, A, B, C, '(tan(A))/(b + c)', ID="X_28", classes=["center", "incident"])
            X_72 = eval_trilinear_point(model, A, B, C, '(b + c)*cot(A)', ID="X_72", classes=["center", "incident"])
            central_line(model, X_28, X_72, 28, 72, incident=True)
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center", "incident"])
            central_line(model, X_57, X_78, 57, 78, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_278 = eval_trilinear_point(model, A, B, C, 'sec(A)*tan(A/2)', ID="X_278", classes=["center", "incident"])
            central_line(model, X_8, X_278, 8, 278, incident=True)
            return promote_point_to_top(model, X_1257)


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