X2164

X2-ISOCONJUGATE OF X46

< 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, 35 }: Central Line L(9, 35) { 571, 607 }: Central Line L(571, 607) { 6, 1195 }: Central Line L(6, 1195) { 284, 1069 }: Central Line L(284, 1069) { 19, 1609 }: Central Line L(19, 1609) { 56, 2160 }: Central Line L(56, 2160) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_9 = MITTENPUNKT (0.5110, 0.1615) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_571 = ORTHOHARMONIC OF X(52) (0.7141, 0.4556) X_607 = ISOGONAL CONJUGATE OF X(348) (0.6187, 0.3865) X_1195 = 3rd SARAGOSSA POINT OF X(19) (0.6245, 0.2796) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_1069 = -CROSS CONJUGATE OF X(3) (0.0709, 0.0059) X_19 = CLAWSON POINT (0.6246, 0.4244) X_1609 = TCC-PERSPECTOR OF X(19) (0.7601, 0.5316) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_2160 = -ISOCONJUGATE OF X(35) (0.6185, 0.3356) X_2164 = -ISOCONJUGATE OF X(46) (0.1231, 0.0273) A B C X48 X6 X9 X35 X571 X607 X1195 X284 X1069 X19 X1609 X56 X2160 X2164 (a, b, c) = (5, 6, 7) | AB = 1

X2164 (X2-ISOCONJUGATE OF X46) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2164 = X_2-ISOCONJUGATE OF X_46."""

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


        def construct_x_02164(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2164 = X_2-ISOCONJUGATE OF X_46 on reference triangle ABC."""
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center"])
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center"])
            X_571 = eval_trilinear_point(model, A, B, C, 'sin(A)*cos(2*A)', ID="X_571", classes=["center"])
            X_607 = eval_trilinear_point(model, A, B, C, 'a*(1 + sec(A))', ID="X_607", classes=["center"])
            central_line(model, X_9, X_35, 9, 35)
            central_line(model, X_571, X_607, 571, 607)
            X_2164 = intersect_lines(model, X_9, X_35, X_571, X_607, ID="X_2164", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_1195 = point_from_barycentrics(model, A, B, C, 0.19476988, 0.33920828, 0.46602184, ID="X_1195", classes=["center", "incident"])
            central_line(model, X_6, X_1195, 6, 1195, incident=True)
            return promote_point_to_top(model, X_2164)


        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_2164 on the given reference triangle."""
            model = create_model('X_2164 = X_2-ISOCONJUGATE OF X_46')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02164(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-02164.json"))
            write_center_svg(
                model_acute,
                here / "x-02164.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )