X219

X8-CEVA CONJUGATE OF X55

< 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, 6 }: Incenter–Symmedian Line { 8, 29 }: Central Line L(8, 29) { 3, 48 }: Central Line L(3, 48) { 63, 77 }: Central Line L(63, 77) { 101, 102 }: Central Line L(101, 102) { 55, 284 }: Central Line L(55, 284) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_8 = NAGEL POINT (0.4694, 0.1333) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_1 = INCENTER (0.5714, 0.2333) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) A B C X8 X55 X1 X6 X29 X3 X48 X63 X77 X101 X102 X284 X219 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_219 = X_8-CEVA CONJUGATE OF X_55."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            nagel_point_of,
            promote_point_to_top,
            symmedian_point_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00219(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_219 = X_8-CEVA CONJUGATE OF X_55 on reference triangle ABC."""
            X_219 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A/2)', ID="X_219", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_1, X_6, 1, 6, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            central_line(model, X_8, X_29, 8, 29, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            central_line(model, X_3, X_48, 3, 48, incident=True)
            return promote_point_to_top(model, X_219)


        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_219 on the given reference triangle."""
            model = create_model('X_219 = X_8-CEVA CONJUGATE OF X_55')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00219(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-00219.json"))
            write_center_svg(
                model_acute,
                here / "x-00219.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )