X879

ISOTOMIC CONJUGATE OF X877

< 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) { 74, 98 }: Central Line L(74, 98) { 4, 512 }: Central Line L(4, 512) { 3, 525 }: Central Line L(3, 525) { 6, 523 }: Central Line L(6, 523) { 69, 520 }: Central Line L(69, 520) { 67, 526 }: Central Line L(67, 526) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_877 = INTERSECTION OF LINES X(4)X(69) AND X(99)X(112) (0.8267, 0.7499) X_74 = ISOGONAL CONJUGATE OF EULER INFINITY POINT (0.7484, -0.3437) X_98 = TARRY POINT (0.8891, -0.2281) X_4 = ORTHOCENTER (0.6122, 0.3958) X_512 = ISOGONAL CONJUGATE OF X(99) (1.0394, -0.1040) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_525 = ISOGONAL CONJUGATE OF X(112) (-0.0468, 0.2556) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_520 = ISOGONAL CONJUGATE OF X(107) (-0.0490, 0.2227) X_67 = ISOGONAL CONJUGATE OF X(23) (0.7606, -0.2152) X_526 = ISOGONAL CONJUGATE OF X(476) (1.0501, 0.4856) X_879 = ISOTOMIC CONJUGATE OF X(877) (1.2088, 0.0345) A B C X877 X74 X98 X4 X512 X3 X525 X6 X523 X69 X520 X67 X526 X879 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_879 = ISOTOMIC CONJUGATE OF X_877."""

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


        def construct_x_00879(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_879 = ISOTOMIC CONJUGATE OF X_877 on reference triangle ABC."""
            X_877 = point_from_barycentrics(model, A, B, C, -0.31137873, 0.061326014, 1.2500527, ID="X_877", classes=["center"])
            X_879 = isotomic_conjugate(model, A, B, C, X_877, ID="X_879", classes=["selected", "target"])
            X_74 = eval_trilinear_point(model, A, B, C, '1/(cos(A) - 2*cos(B)*cos(C))', ID="X_74", classes=["center", "incident"])
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            central_line(model, X_74, X_98, 74, 98, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", 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_4, X_512, 4, 512, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_525 = eval_trilinear_point(model, A, B, C, '(b*cos(B) - c*cos(C))/a', ID="X_525", classes=["center", "incident"])
            central_line(model, X_3, X_525, 3, 525, incident=True)
            return promote_point_to_top(model, X_879)


        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_879 on the given reference triangle."""
            model = create_model('X_879 = ISOTOMIC CONJUGATE OF X_877')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00879(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-00879.json"))
            write_center_svg(
                model_acute,
                here / "x-00879.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )