X1330

ANTICOMPLEMENTARY CONJUGATE OF X1

X1330 = reflection of X1046 in X10
< 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) { 1046, 10 }: Central Line L(1046, 10) { 2, 58 }: Central Line L(2, 58) { 4, 69 }: Central Line L(4, 69) { 8, 79 }: Central Line L(8, 79) { 193, 387 }: Central Line L(193, 387) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1046 = -CEVA CONJUGATE OF X(1) (0.6500, 0.3366) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_2 = CENTROID (0.5374, 0.2000) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_4 = ORTHOCENTER (0.6122, 0.3958) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_8 = NAGEL POINT (0.4694, 0.1333) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_193 = -CEVA CONJUGATE OF X(2) (0.7878, 0.4690) X_387 = INTERSECTION OF LINES X(1,2) AND X(4,6) (0.5994, 0.2607) X_1330 = ANTICOMPLEMENTARY CONJUGATE OF X(1) (0.3908, 0.0300) A B C X1046 X10 X2 X58 X4 X69 X8 X79 X193 X387 X1330 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1330 = ANTICOMPLEMENTARY 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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            nagel_point_of,
            orthocenter_of,
            point_from_barycentrics,
            promote_point_to_top,
            reflection_in_point,
            spieker_center_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01330(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1330 = ANTICOMPLEMENTARY CONJUGATE OF X_1 on reference triangle ABC."""
            X_1046 = point_from_barycentrics(model, A, B, C, 0.13236391, 0.3064877, 0.5611484, ID="X_1046", classes=["center"])
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center"])
            X_1330 = reflection_in_point(model, X_1046, X_10, ID="X_1330", classes=["selected", "target"], guide=False)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            central_line(model, X_2, X_58, 2, 58, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            central_line(model, X_4, X_69, 4, 69, incident=True)
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_79 = eval_trilinear_point(model, A, B, C, '1/(1 + 2*cos(A))', ID="X_79", classes=["center", "incident"])
            central_line(model, X_8, X_79, 8, 79, incident=True)
            return promote_point_to_top(model, X_1330)


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