X3211

X57-CEVA CONJUGATE OF X3

< 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) { 3, 48 }: Central Line L(3, 48) { 6, 169 }: Central Line L(6, 169) { 155, 610 }: Central Line L(155, 610) { 651, 1119 }: Central Line L(651, 1119) { 579, 2178 }: Central Line L(579, 2178) { 1467, 1743 }: Central Line L(1467, 1743) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_169 = -CEVA CONJUGATE OF X(1) (0.5497, 0.2510) X_155 = EIGENCENTER OF ORTHIC TRIANGLE (1.1658, 0.5033) X_610 = -CEVA CONJUGATE OF X(1) (0.4310, -0.2713) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_1119 = 2nd HATZIPOLAKIS PERSPECTOR (0.6322, 0.5039) X_579 = HARMONIC OF X(284) (0.7212, 0.4674) X_2178 = -ISOCONJUGATE OF X(90) (0.6843, 0.4716) X_1467 = -BETH CONJUGATE OF X(938) (0.6380, 0.3556) X_1743 = MIMOSA TRANSFORM OF X(222) (0.6798, 0.3620) X_3211 = -CEVA CONJUGATE OF X(3) (1.0919, 0.4254) A B C X57 X3 X48 X6 X169 X155 X610 X651 X1119 X579 X2178 X1467 X1743 X3211 (a, b, c) = (5, 6, 7) | AB = 1

X3211 (X57-CEVA CONJUGATE OF X3) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3211 = X_57-CEVA CONJUGATE OF X_3."""

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


        def construct_x_03211(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3211 = X_57-CEVA CONJUGATE OF X_3 on reference triangle ABC."""
            X_3211 = eval_trilinear_point(model, A, B, C, '(a*(b**(2) + c**(2) - a**(2))*(a**(4) - 2*a**(3)*(b + c) - 2*a**(2)*b*c + 2*a*(b**(3) + c**(3)) - (b**(2) - c**(2))**(2)))', ID="X_3211", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            central_line(model, X_3, X_48, 3, 48, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_169 = eval_trilinear_point(model, A, B, C, '- (sin(A))*(cos(A/2))**(2) + (sin(B))*(cos(B/2))**(2) + (sin(C))*(cos(C/2))**(2)', ID="X_169", classes=["center", "incident"])
            central_line(model, X_6, X_169, 6, 169, incident=True)
            X_155 = eval_trilinear_point(model, A, B, C, '(cos(A))*((cos(B))**(2) + (cos(C))**(2) - (cos(A))**(2))', ID="X_155", classes=["center", "incident"])
            X_610 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C) - tan(A)', ID="X_610", classes=["center", "incident"])
            central_line(model, X_155, X_610, 155, 610, incident=True)
            return promote_point_to_top(model, X_3211)


        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_3211 on the given reference triangle."""
            model = create_model('X_3211 = X_57-CEVA CONJUGATE OF X_3')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03211(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-03211.json"))
            write_center_svg(
                model_acute,
                here / "x-03211.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )