X2185

X2-ISOCONJUGATE OF X181

< 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) { 21, 60 }: Central Line L(21, 60) { 27, 86 }: Central Line L(27, 86) { 261, 284 }: Central Line L(261, 284) { 2, 662 }: Central Line L(2, 662) { 81, 593 }: Central Line L(81, 593) { 55, 643 }: Central Line L(55, 643) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2171 = -ISOCONJUGATE OF X(60) (0.5931, 0.2753) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_60 = ISOGONAL CONJUGATE OF X(12) (0.5790, 0.2258) X_27 = CEVAPOINT OF ORTHOCENTER AND CLAWSON CENTER (0.6182, 0.4112) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_261 = ISOTOMIC CONJUGATE OF X(12) (0.5072, 0.1625) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_2 = CENTROID (0.5374, 0.2000) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_593 = 1st HATZIPOLAKIS-YIU POINT (0.6202, 0.3026) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_643 = TRILINEAR MULTIPLIER FOR KIEPERT PARABOLA (0.0142, 0.3704) X_2185 = -ISOCONJUGATE OF X(181) (0.5454, 0.1933) A B C X2171 X21 X60 X27 X86 X261 X284 X2 X662 X81 X593 X55 X643 X2185 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2185 = X_2-ISOCONJUGATE OF X_181."""

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


        def construct_x_02185(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2185 = X_2-ISOCONJUGATE OF X_181 on reference triangle ABC."""
            X_2171 = eval_trilinear_point(model, A, B, C, '(b + c)**(2)/(b + c - a)', ID="X_2171", classes=["center"])
            X_2185 = isogonal_conjugate(model, A, B, C, X_2171, ID="X_2185", classes=["selected", "target"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_60 = eval_trilinear_point(model, A, B, C, '1/(1 + cos(B - C))', ID="X_60", classes=["center", "incident"])
            central_line(model, X_21, X_60, 21, 60, incident=True)
            X_27 = eval_trilinear_point(model, A, B, C, '(sec(A))/(b + c)', ID="X_27", classes=["center", "incident"])
            X_86 = eval_trilinear_point(model, A, B, C, 'b*c/(b + c)', ID="X_86", classes=["center", "incident"])
            central_line(model, X_27, X_86, 27, 86, incident=True)
            X_261 = eval_trilinear_point(model, A, B, C, '(((csc(A))*(sec(B/2 - C/2)))**(2))', ID="X_261", classes=["center", "incident"])
            X_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center", "incident"])
            central_line(model, X_261, X_284, 261, 284, incident=True)
            return promote_point_to_top(model, X_2185)


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