X1332

ORTHOCORRESPONDENT OF X100

For the definition of orthocorrespondent, see the notes just before X1992.
< 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) { 100, 110 }: Central Line L(100, 110) { 69, 219 }: Central Line L(69, 219) { 6, 344 }: Central Line L(6, 344) { 287, 336 }: Central Line L(287, 336) { 345, 394 }: Central Line L(345, 394) { 190, 644 }: Central Line L(190, 644) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_344 = ISOTOMIC CONJUGATE OF X(277) (0.6218, 0.2693) X_287 = -HIRST INVERSE OF X(98) (0.7437, -0.0511) X_336 = ISOTOMIC CONJUGATE OF X(240) (0.7020, -0.0409) X_345 = ISOTOMIC CONJUGATE OF X(278) (0.3405, 0.0381) X_394 = -CEVA CONJUGATE OF X(3) (0.3778, 0.0284) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_644 = TRILINEAR MULTIPLIER FOR YFF PARABOLA (-0.0171, 0.3359) X_1332 = ORTHOCORRESPONDENT OF X(100) (-0.2317, 0.1866) A B C X100 X110 X69 X219 X6 X344 X287 X336 X345 X394 X190 X644 X1332 (a, b, c) = (5, 6, 7) | AB = 1

X1332 (ORTHOCORRESPONDENT OF X100) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1332 = ORTHOCORRESPONDENT OF X_100."""

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


        def construct_x_01332(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1332 = ORTHOCORRESPONDENT OF X_100 on reference triangle ABC."""
            X_1332 = eval_trilinear_point(model, A, B, C, '(b**(2) + c**(2) - a**(2))/(b - c)', ID="X_1332", classes=["selected", "target"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            central_line(model, X_100, X_110, 100, 110, incident=True)
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            X_219 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A/2)', ID="X_219", classes=["center", "incident"])
            central_line(model, X_69, X_219, 69, 219, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_344 = eval_trilinear_point(model, A, B, C, '((csc(A/2))**(2))*((cos(B/2))**(4) + (cos(C/2))**(4) - (cos(A/2))**(4))', ID="X_344", classes=["center", "incident"])
            central_line(model, X_6, X_344, 6, 344, incident=True)
            return promote_point_to_top(model, X_1332)


        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_1332 on the given reference triangle."""
            model = create_model('X_1332 = ORTHOCORRESPONDENT OF X_100')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01332(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-01332.json"))
            write_center_svg(
                model_acute,
                here / "x-01332.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )