X210

X10-CEVA CONJUGATE OF X37

< 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) { 10, 12 }: Central Line L(10, 12) { 9, 55 }: Central Line L(9, 55) { 31, 44 }: Central Line L(31, 44) { 37, 42 }: Central Line L(37, 42) { 33, 220 }: Central Line L(33, 220) { 8, 312 }: Central Line L(8, 312) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_9 = MITTENPUNKT (0.5110, 0.1615) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_8 = NAGEL POINT (0.4694, 0.1333) X_312 = ISOTOMIC CONJUGATE OF X(57) (0.4256, 0.1081) X_210 = -CEVA CONJUGATE OF X(37) (0.4925, 0.1466) A B C X10 X37 X12 X9 X55 X31 X44 X42 X33 X220 X8 X312 X210 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_210 = X_10-CEVA CONJUGATE OF X_37."""

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


        def construct_x_00210(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_210 = X_10-CEVA CONJUGATE OF X_37 on reference triangle ABC."""
            X_210 = eval_trilinear_point(model, A, B, C, '(b + c)*(b + c - a)', ID="X_210", classes=["selected", "target"])
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            central_line(model, X_10, X_12, 10, 12, incident=True)
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center", "incident"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            central_line(model, X_9, X_55, 9, 55, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center", "incident"])
            central_line(model, X_31, X_44, 31, 44, incident=True)
            return promote_point_to_top(model, X_210)


        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_210 on the given reference triangle."""
            model = create_model('X_210 = X_10-CEVA CONJUGATE OF X_37')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00210(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-00210.json"))
            write_center_svg(
                model_acute,
                here / "x-00210.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )