X480

X200-CEVA CONJUGATE OF X220

< 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) { 9, 55 }: Central Line L(9, 55) { 56, 78 }: Central Line L(56, 78) { 100, 144 }: Central Line L(100, 144) { 8, 344 }: Central Line L(8, 344) { 10, 954 }: Central Line L(10, 954) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_200 = -CEVA CONJUGATE OF X(9) (0.4392, 0.1037) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_9 = MITTENPUNKT (0.5110, 0.1615) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_144 = ANTICOMPLEMENT OF X(7) (0.4317, 0.0461) X_8 = NAGEL POINT (0.4694, 0.1333) X_344 = ISOTOMIC CONJUGATE OF X(277) (0.6218, 0.2693) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_954 = INTERSECTION OF LINES X(1)X(6) AND X(3)X(7) (0.5619, 0.2220) X_480 = -CEVA CONJUGATE OF X(220) (0.4089, 0.0793) A B C X200 X220 X9 X55 X56 X78 X100 X144 X8 X344 X10 X954 X480 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_480 = X_200-CEVA CONJUGATE OF X_220."""

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


        def construct_x_00480(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_480 = X_200-CEVA CONJUGATE OF X_220 on reference triangle ABC."""
            X_479 = eval_trilinear_point(model, A, B, C, '(tan(A/2)*sec(A/2))**(2)', ID="X_479", classes=["center"])
            X_480 = isogonal_conjugate(model, A, B, C, X_479, ID="X_480", classes=["selected", "target"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            central_line(model, X_9, X_55, 9, 55, incident=True)
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", 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_56, X_78, 56, 78, incident=True)
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            X_144 = eval_trilinear_point(model, A, B, C, '(csc(A))*(tan(B/2) + tan(C/2) - tan(A/2))', ID="X_144", classes=["center", "incident"])
            central_line(model, X_100, X_144, 100, 144, incident=True)
            return promote_point_to_top(model, X_480)


        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_480 on the given reference triangle."""
            model = create_model('X_480 = X_200-CEVA CONJUGATE OF X_220')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00480(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-00480.json"))
            write_center_svg(
                model_acute,
                here / "x-00480.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )