X235

X4-CEVA CONJUGATE OF X185

X235 = midpoint of X4 and X24
< 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) { 4, 24 }: Euler Line { 2, 3 }: Euler Line { 11, 34 }: Central Line L(11, 34) { 12, 33 }: Central Line L(12, 33) { 52, 113 }: Central Line L(52, 113) { 133, 136 }: Central Line L(133, 136) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_24 = PERSPECTOR OF ABC AND ORTHIC-OF-ORTHIC TRIANGLE (0.6627, 0.5278) X_2 = CENTROID (0.5374, 0.2000) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_52 = ORTHOCENTER OF ORTHIC TRIANGLE (0.7155, 0.4580) X_113 = JERABEK ANTIPODE (0.4319, 0.4718) X_133 = INTERSECTION OF LINES X(4)X(74) AND X(5)X(122) (0.5928, 0.5014) X_136 = INTERSECTION OF LINE X(4)X(110) AND X(25)X(132) (0.8024, 0.3155) X_235 = -CEVA CONJUGATE OF X(185) (0.6375, 0.4618) A B C X4 X24 X2 X3 X11 X34 X12 X33 X52 X113 X133 X136 X235 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_235 = X_4-CEVA CONJUGATE OF X_185."""

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


        def construct_x_00235(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_235 = X_4-CEVA CONJUGATE OF X_185 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_24 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)', ID="X_24", classes=["center"])
            X_235 = midpoint(model, X_4, X_24, ID="X_235", classes=["selected", "target"], guide=False)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_34 = eval_trilinear_point(model, A, B, C, '1 - sec(A)', ID="X_34", classes=["center", "incident"])
            central_line(model, X_11, X_34, 11, 34, incident=True)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", 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_12, X_33, 12, 33, incident=True)
            return promote_point_to_top(model, X_235)


        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_235 on the given reference triangle."""
            model = create_model('X_235 = X_4-CEVA CONJUGATE OF X_185')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00235(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-00235.json"))
            write_center_svg(
                model_acute,
                here / "x-00235.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )