X3443

X18-VERTEX CONJUGATE OF X18

< 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) { 61, 184 }: Central Line L(61, 184) { 3, 302 }: Central Line L(3, 302) { 18, 1608 }: Central Line L(18, 1608) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_634 = ANTICOMPLEMENT OF X(62) (0.3230, -0.0820) X_61 = ISOGONAL CONJUGATE OF X(17) (0.5764, 0.2283) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_302 = ISOTOMIC CONJUGATE OF 1st NAPOLEON POINT (0.5043, 0.1643) X_18 = 2nd NAPOLEON POINT (0.4434, 0.1317) X_1608 = TCC-PERSPECTOR OF X(18) (0.3143, -0.7663) X_3443 = -VERTEX CONJUGATE OF X(18) (0.5556, 0.9121) A B C X634 X61 X184 X3 X302 X18 X1608 X3443 (a, b, c) = (5, 6, 7) | AB = 1

X3443 (X18-VERTEX CONJUGATE OF X18) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3443 = X_18-VERTEX CONJUGATE OF X_18."""

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


        def construct_x_03443(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3443 = X_18-VERTEX CONJUGATE OF X_18 on reference triangle ABC."""
            X_634 = eval_trilinear_point(model, A, B, C, '((S*B*S*C - 2*sqrt(3)*SA*area )/a)', ID="X_634", classes=["center"])
            X_3443 = isogonal_conjugate(model, A, B, C, X_634, ID="X_3443", classes=["selected", "target"])
            X_61 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /6)', ID="X_61", classes=["center", "incident"])
            X_184 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A)', ID="X_184", classes=["center", "incident"])
            central_line(model, X_61, X_184, 61, 184, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_302 = eval_trilinear_point(model, A, B, C, '(csc(A))**(2)*sin(A +  pi  /6)', ID="X_302", classes=["center", "incident"])
            central_line(model, X_3, X_302, 3, 302, incident=True)
            X_18 = eval_trilinear_point(model, A, B, C, 'csc(A -  pi  /6)', ID="X_18", classes=["center", "incident"])
            X_1608 = point_from_barycentrics(model, A, B, C, 1.1810413, 1.0963146, -1.2773558, ID="X_1608", classes=["center", "incident"])
            central_line(model, X_18, X_1608, 18, 1608, incident=True)
            return promote_point_to_top(model, X_3443)


        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_3443 on the given reference triangle."""
            model = create_model('X_3443 = X_18-VERTEX CONJUGATE OF X_18')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03443(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-03443.json"))
            write_center_svg(
                model_acute,
                here / "x-03443.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )