X268

ISOGONAL CONJUGATE OF X196

< 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, 9 }: Central Line L(3, 9) { 219, 255 }: Central Line L(219, 255) { 21, 280 }: Central Line L(21, 280) { 220, 577 }: Central Line L(220, 577) { 281, 1012 }: Central Line L(281, 1012) { 222, 1073 }: Central Line L(222, 1073) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_196 = -CEVA CONJUGATE OF X(4) (0.5649, -0.1989) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_9 = MITTENPUNKT (0.5110, 0.1615) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_280 = -CROSS CONJUGATE OF X(8) (0.6379, 0.8041) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_577 = HARMONIC OF X(216) (0.4663, 0.0464) X_281 = -CROSS CONJUGATE OF X(9) (0.5796, 0.3202) X_1012 = INTERCEPT OF EULER LINE AND LINE X(1)X(84) (0.5770, 0.3036) X_222 = -CEVA CONJUGATE OF X(56) (0.5653, 0.1568) X_1073 = -CROSS CONJUGATE OF X(3) (0.4792, -0.4343) X_268 = ISOGONAL CONJUGATE OF X(196) (0.7710, 1.5678) A B C X196 X3 X9 X219 X255 X21 X280 X220 X577 X281 X1012 X222 X1073 X268 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_268 = ISOGONAL CONJUGATE OF X_196."""

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


        def construct_x_00268(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_268 = ISOGONAL CONJUGATE OF X_196 on reference triangle ABC."""
            X_196 = eval_trilinear_point(model, A, B, C, '((cos(B) + cos(C) - cos(A) - 1)*sec(A)*tan(A/2))', ID="X_196", classes=["center"])
            X_268 = isogonal_conjugate(model, A, B, C, X_196, ID="X_268", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            central_line(model, X_3, X_9, 3, 9, incident=True)
            X_219 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A/2)', ID="X_219", classes=["center", "incident"])
            X_255 = eval_trilinear_point(model, A, B, C, '(cos(A))**(2)', ID="X_255", classes=["center", "incident"])
            central_line(model, X_219, X_255, 219, 255, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_280 = eval_trilinear_point(model, A, B, C, '((csc(A/2))**(2))/(-1 - cos(A) + cos(B) + cos(C))', ID="X_280", classes=["center", "incident"])
            central_line(model, X_21, X_280, 21, 280, incident=True)
            return promote_point_to_top(model, X_268)


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