X1509

ISOGONAL CONJUGATE OF X1500

< 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) { 1, 99 }: Central Line L(1, 99) { 58, 86 }: Central Line L(58, 86) { 81, 239 }: Central Line L(81, 239) { 76, 940 }: Central Line L(76, 940) { 552, 553 }: Central Line L(552, 553) { 2, 1171 }: Central Line L(2, 1171) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1500 = INSIMILICENTER OF MOSES CIRCLE AND INCIRCLE (0.5747, 0.2319) X_1 = INCENTER (0.5714, 0.2333) X_99 = STEINER POINT (0.1109, 0.4322) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_940 = POINT ALDEBARAN (0.5757, 0.2411) X_552 = POINT MAIA I (0.6112, 0.3127) X_553 = POINT MAIA II (0.5963, 0.2857) X_2 = CENTROID (0.5374, 0.2000) X_1171 = 1st SARAGOSSA POINT OF X(42) (0.6052, 0.2763) X_1509 = ISOGONAL CONJUGATE OF X(1500) (0.5682, 0.2347) A B C X1500 X1 X99 X58 X86 X81 X239 X76 X940 X552 X553 X2 X1171 X1509 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1509 = ISOGONAL CONJUGATE OF X_1500."""

        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_01509(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1509 = ISOGONAL CONJUGATE OF X_1500 on reference triangle ABC."""
            X_1500 = eval_trilinear_point(model, A, B, C, 'a*(b + c)**(2)', ID="X_1500", classes=["center"])
            X_1509 = isogonal_conjugate(model, A, B, C, X_1500, ID="X_1509", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            central_line(model, X_1, X_99, 1, 99, incident=True)
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", 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_58, X_86, 58, 86, incident=True)
            X_81 = eval_trilinear_point(model, A, B, C, '1/(b + c)', ID="X_81", classes=["center", "incident"])
            X_239 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) - b*c)', ID="X_239", classes=["center", "incident"])
            central_line(model, X_81, X_239, 81, 239, incident=True)
            return promote_point_to_top(model, X_1509)


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