X2342

X2-ISOCONJUGATE OF X1465

< 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, 33 }: Central Line L(31, 33) { 1, 104 }: Central Line L(1, 104) { 55, 184 }: Central Line L(55, 184) { 200, 212 }: Central Line L(200, 212) { 283, 643 }: Central Line L(283, 643) { 678, 1253 }: Central Line L(678, 1253) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_909 = POINT ADHAFERA (0.9286, -0.3499) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_1 = INCENTER (0.5714, 0.2333) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_200 = -CEVA CONJUGATE OF X(9) (0.4392, 0.1037) X_212 = -CEVA CONJUGATE OF X(41) (0.4719, 0.0786) X_283 = -CROSS CONJUGATE OF X(21) (0.4475, 0.0704) X_643 = TRILINEAR MULTIPLIER FOR KIEPERT PARABOLA (0.0142, 0.3704) X_678 = CROSSPOINT OF X(1) AND X(44) (0.3571, 0.3499) X_1253 = ISOGONAL CONJUGATE OF X(1088) (0.5237, 0.1548) X_2342 = -ISOCONJUGATE OF X(1465) (0.8098, -0.1803) A B C X104 X909 X31 X33 X1 X55 X184 X200 X212 X283 X643 X678 X1253 X2342 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2342 = X_2-ISOCONJUGATE OF X_1465."""

        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,
            ceva_conjugate,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            point_from_barycentrics,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02342(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2342 = X_2-ISOCONJUGATE OF X_1465 on reference triangle ABC."""
            X_104 = eval_trilinear_point(model, A, B, C, '1/(-1 + cos(B) + cos(C))', ID="X_104", classes=["center"])
            X_909 = point_from_barycentrics(model, A, B, C, 0.29761905, 1.2857143, -0.58333333, ID="X_909", classes=["center"])
            X_2342 = ceva_conjugate(model, A, B, C, X_104, X_909, ID="X_2342", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", 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_31, X_33, 31, 33, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            central_line(model, X_1, X_104, 1, 104, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_184 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A)', ID="X_184", classes=["center", "incident"])
            central_line(model, X_55, X_184, 55, 184, incident=True)
            return promote_point_to_top(model, X_2342)


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