X2212

X2-ISOCONJUGATE OF X348

< 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) { 9, 33 }: Central Line L(9, 33) { 25, 31 }: Central Line L(25, 31) { 4, 238 }: Central Line L(4, 238) { 24, 601 }: Central Line L(24, 601) { 171, 459 }: Central Line L(171, 459) { 427, 748 }: Central Line L(427, 748) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1918 = BICENTRIC SUM OF PU(12) (0.6333, 0.3163) X_2175 = -ISOCONJUGATE OF X(85) (0.6102, 0.2574) X_9 = MITTENPUNKT (0.5110, 0.1615) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_4 = ORTHOCENTER (0.6122, 0.3958) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_601 = INTERSECTION OF LINES X(3)X(31) AND X(55)X(255) (0.5761, 0.2252) X_171 = {X(2), X(31)}-HARMONIC CONJUGATE OF X(238) (0.5819, 0.2525) X_459 = -CEVA CONJUGATE OF X(4) (0.5934, 0.8103) X_427 = COMPLEMENT OF X(22) (0.5990, 0.3610) X_748 = INTERSECTION OF LINES X(2)X(31) AND X(9)X(38) (0.4360, 0.0802) X_2212 = -ISOCONJUGATE OF X(348) (0.6305, 0.4154) A B C X1918 X2175 X9 X33 X25 X31 X4 X238 X24 X601 X171 X459 X427 X748 X2212 (a, b, c) = (5, 6, 7) | AB = 1

X2212 (X2-ISOCONJUGATE OF X348) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2212 = X_2-ISOCONJUGATE OF X_348."""

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


        def construct_x_02212(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2212 = X_2-ISOCONJUGATE OF X_348 on reference triangle ABC."""
            X_2212 = eval_trilinear_point(model, A, B, C, '((sin(A))*(sin(A) + tan(A)))', ID="X_2212", classes=["selected", "target"])
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center", "incident"])
            central_line(model, X_9, X_33, 9, 33, incident=True)
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            central_line(model, X_25, X_31, 25, 31, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            central_line(model, X_4, X_238, 4, 238, incident=True)
            return promote_point_to_top(model, X_2212)


        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_2212 on the given reference triangle."""
            model = create_model('X_2212 = X_2-ISOCONJUGATE OF X_348')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02212(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-02212.json"))
            write_center_svg(
                model_acute,
                here / "x-02212.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )