X943

ISOGONAL CONJUGATE OF X942

< 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) { 3, 7 }: Central Line L(3, 7) { 4, 12 }: Central Line L(4, 12) { 21, 72 }: Central Line L(21, 72) { 35, 79 }: Central Line L(35, 79) { 1, 201 }: Central Line L(1, 201) { 28, 228 }: Central Line L(28, 228) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_942 = INCIRCLE-INVERSE OF X(36) (0.5878, 0.2633) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_7 = GERGONNE POINT (0.5903, 0.2769) X_4 = ORTHOCENTER (0.6122, 0.3958) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_1 = INCENTER (0.5714, 0.2333) X_201 = -CEVA CONJUGATE OF X(12) (0.4897, 0.1062) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_228 = -CEVA CONJUGATE OF X(71) (0.5231, 0.1126) X_943 = ISOGONAL CONJUGATE OF X(942) (0.5528, 0.2043) A B C X942 X3 X7 X4 X12 X21 X72 X35 X79 X1 X201 X28 X228 X943 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_943 = ISOGONAL CONJUGATE OF X_942."""

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


        def construct_x_00943(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_943 = ISOGONAL CONJUGATE OF X_942 on reference triangle ABC."""
            X_942 = eval_trilinear_point(model, A, B, C, '2*a*b*c + (b + c)*(a - b + c)*(a + b -c)', ID="X_942", classes=["center"])
            X_943 = isogonal_conjugate(model, A, B, C, X_942, ID="X_943", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            central_line(model, X_3, X_7, 3, 7, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            central_line(model, X_4, X_12, 4, 12, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_72 = eval_trilinear_point(model, A, B, C, '(b + c)*cot(A)', ID="X_72", classes=["center", "incident"])
            central_line(model, X_21, X_72, 21, 72, incident=True)
            return promote_point_to_top(model, X_943)


        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_943 on the given reference triangle."""
            model = create_model('X_943 = ISOGONAL CONJUGATE OF X_942')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00943(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-00943.json"))
            write_center_svg(
                model_acute,
                here / "x-00943.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )