X327

ISOTOMIC CONJUGATE OF X182

< 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) { 5, 76 }: Central Line L(5, 76) { 53, 141 }: Central Line L(53, 141) { 95, 160 }: Central Line L(95, 160) { 4, 276 }: Central Line L(4, 276) { 2, 290 }: Central Line L(2, 290) { 69, 263 }: Central Line L(69, 263) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_182 = MIDPOINT OF BROCARD DIAMETER (0.5500, 0.1846) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_53 = SYMMEDIAN POINT OF ORTHIC TRIANGLE (0.6164, 0.4390) X_141 = COMPLEMENT OF SYMMEDIAN POINT (0.5061, 0.1663) X_95 = CEVAPOINT OF CENTROID AND CIRCUMCENTER (0.5172, 0.1562) X_160 = -OF-TANGENTIAL-TRIANGLE (0.4841, -0.0647) X_4 = ORTHOCENTER (0.6122, 0.3958) X_276 = ISOGONAL CONJUGATE OF X(217) (0.5554, 0.2771) X_2 = CENTROID (0.5374, 0.2000) X_290 = ISOGONAL CONJUGATE OF X(237) (0.7829, -0.1380) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_263 = ISOGONAL CONJUGATE OF X(183) (0.6298, 0.3525) X_327 = ISOTOMIC CONJUGATE OF X(182) (0.5260, 0.2156) A B C X182 X5 X76 X53 X141 X95 X160 X4 X276 X2 X290 X69 X263 X327 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_327 = ISOTOMIC CONJUGATE OF X_182."""

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


        def construct_x_00327(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_327 = ISOTOMIC CONJUGATE OF X_182 on reference triangle ABC."""
            X_182 = eval_trilinear_point(model, A, B, C, 'cos(A-  omega  )', ID="X_182", classes=["center"])
            X_327 = isotomic_conjugate(model, A, B, C, X_182, ID="X_327", classes=["selected", "target"])
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center", "incident"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            central_line(model, X_5, X_76, 5, 76, incident=True)
            X_53 = eval_trilinear_point(model, A, B, C, 'tan(A)*cos(B - C)', ID="X_53", classes=["center", "incident"])
            X_141 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) + c**(2))', ID="X_141", classes=["center", "incident"])
            central_line(model, X_53, X_141, 53, 141, incident=True)
            X_95 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)*sec(B - C)', ID="X_95", classes=["center", "incident"])
            X_160 = eval_trilinear_point(model, A, B, C, '(a*((b**(2) + c**(2))*sin(2*A) + (c**(2) - a**(2))*sin(2*B) + (b**(2) - a**(2))*sin(2*C)))', ID="X_160", classes=["center", "incident"])
            central_line(model, X_95, X_160, 95, 160, incident=True)
            return promote_point_to_top(model, X_327)


        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_327 on the given reference triangle."""
            model = create_model('X_327 = ISOTOMIC CONJUGATE OF X_182')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00327(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-00327.json"))
            write_center_svg(
                model_acute,
                here / "x-00327.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )