X1019

X99-CEVA CONJUGATE OF X1

< 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, 238 }: Central Line L(36, 238) { 1, 512 }: Central Line L(1, 512) { 239, 514 }: Central Line L(239, 514) { 99, 813 }: Central Line L(99, 813) { 759, 840 }: Central Line L(759, 840) { 58, 1027 }: Central Line L(58, 1027) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_99 = STEINER POINT (0.1109, 0.4322) X_1 = INCENTER (0.5714, 0.2333) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_512 = ISOGONAL CONJUGATE OF X(99) (1.0394, -0.1040) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_813 = o-(- 1, 1) CIRCUMCIRCLE POINT (0.9721, -0.0916) X_759 = EVEN (1, 3) CIRCUMCIRCLE POINT (0.9498, -0.1389) X_840 = ISOGONAL CONJUGATE OF X(528) (0.0800, 0.3919) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_1027 = INTERSECTION OF LINES X(1)X(514) AND X(6)X(513) (1.0130, 0.0424) X_1019 = -CEVA CONJUGATE OF X(1) (-29.0952, 18.1962) A B C X99 X1 X36 X238 X512 X239 X514 X813 X759 X840 X58 X1027 X1019 (a, b, c) = (5, 6, 7) | AB = 1

X1019 (X99-CEVA CONJUGATE OF X1) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1019 = X_99-CEVA CONJUGATE OF X_1."""

        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_01019(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1019 = X_99-CEVA CONJUGATE OF X_1 on reference triangle ABC."""
            X_1018 = eval_trilinear_point(model, A, B, C, '((b + c)/(b - c))', ID="X_1018", classes=["center"])
            X_1019 = isogonal_conjugate(model, A, B, C, X_1018, ID="X_1019", classes=["selected", "target"])
            X_36 = eval_trilinear_point(model, A, B, C, '1 - 2*cos(A)', ID="X_36", classes=["center", "incident"])
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            central_line(model, X_36, X_238, 36, 238, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_512 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) - c**(2))', ID="X_512", classes=["center", "incident"])
            central_line(model, X_1, X_512, 1, 512, incident=True)
            X_239 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) - b*c)', ID="X_239", classes=["center", "incident"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center", "incident"])
            central_line(model, X_239, X_514, 239, 514, incident=True)
            return promote_point_to_top(model, X_1019)


        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_1019 on the given reference triangle."""
            model = create_model('X_1019 = X_99-CEVA CONJUGATE OF X_1')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01019(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-01019.json"))
            write_center_svg(
                model_acute,
                here / "x-01019.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )