X293

ISOGONAL CONJUGATE OF X240

< 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) { 31, 92 }: Central Line L(31, 92) { 1, 163 }: Central Line L(1, 163) { 98, 109 }: Central Line L(98, 109) { 72, 248 }: Central Line L(72, 248) { 255, 304 }: Central Line L(255, 304) { 287, 306 }: Central Line L(287, 306) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_92 = CEVAPOINT OF INCENTER AND CLAWSON POINT (0.5949, 0.3639) X_1 = INCENTER (0.5714, 0.2333) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_98 = TARRY POINT (0.8891, -0.2281) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_248 = -LINE CONJUGATE OF X(132) (0.8229, -0.0790) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_304 = ISOTOMIC CONJUGATE OF X(19) (0.3683, 0.0513) X_287 = -HIRST INVERSE OF X(98) (0.7437, -0.0511) X_306 = ISOTOMIC CONJUGATE OF X(27) (0.3924, 0.0579) X_293 = ISOGONAL CONJUGATE OF X(240) (0.7839, -0.0636) A B C X240 X31 X92 X1 X163 X98 X109 X72 X248 X255 X304 X287 X306 X293 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_293 = ISOGONAL CONJUGATE OF X_240."""

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


        def construct_x_00293(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_293 = ISOGONAL CONJUGATE OF X_240 on reference triangle ABC."""
            X_240 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(A +  omega  )', ID="X_240", classes=["center"])
            X_293 = isogonal_conjugate(model, A, B, C, X_240, ID="X_293", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_92 = eval_trilinear_point(model, A, B, C, 'csc(2*A)', ID="X_92", classes=["center", "incident"])
            central_line(model, X_31, X_92, 31, 92, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_163 = eval_trilinear_point(model, A, B, C, '(sin(2*A))/(sin(2*B) - sin(2*C))', ID="X_163", classes=["center", "incident"])
            central_line(model, X_1, X_163, 1, 163, incident=True)
            X_98 = eval_trilinear_point(model, A, B, C, 'sec(A +  omega  )', ID="X_98", classes=["center", "incident"])
            X_109 = eval_trilinear_point(model, A, B, C, 'a/(cos(B) - cos(C))', ID="X_109", classes=["center", "incident"])
            central_line(model, X_98, X_109, 98, 109, incident=True)
            return promote_point_to_top(model, X_293)


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