X3022

6th STEVANOVIC POINT

X3022 = X99-of-intouch-triangle
< 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) { 11, 116 }: Central Line L(11, 116) { 12, 118 }: Central Line L(12, 118) { 56, 103 }: Central Line L(56, 103) { 33, 181 }: Central Line L(33, 181) { 152, 388 }: Central Line L(152, 388) { 150, 497 }: Central Line L(150, 497) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_116 = MIDPOINT OF X(4) AND X(103) (0.6990, 0.0375) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_118 = MIDPOINT OF X(4) AND X(101) (0.4133, 0.4603) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_103 = ANTIPODE OF X(101) (0.7857, -0.3208) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_181 = APOLLONIUS POINT (0.6163, 0.3093) X_152 = REFLECTION OF X(20) IN X(101) (0.0408, 1.2414) X_388 = ∩X(7)X(8) (0.5790, 0.2635) X_150 = REFLECTION OF X(20) IN X(103) (1.1837, -0.4499) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_3022 = 6th STEVANOVIC POINT (0.7020, 0.0400) A B C X11 X116 X12 X118 X56 X103 X33 X181 X152 X388 X150 X497 X3022 (a, b, c) = (5, 6, 7) | AB = 1

X3022 (6th STEVANOVIC POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3022 = 6th STEVANOVIC POINT."""

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


        def construct_x_03022(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3022 = 6th STEVANOVIC POINT on reference triangle ABC."""
            X_3022 = eval_trilinear_point(model, A, B, C, '(a*(b - c)**(2)*(b + c - a)**(3))', ID="X_3022", classes=["selected", "target"])
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_116 = eval_trilinear_point(model, A, B, C, 'b*c*((b - c)**(2)*(b**(2) + b*c + c**(2) - a*b - a*c))', ID="X_116", classes=["center", "incident"])
            central_line(model, X_11, X_116, 11, 116, incident=True)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            X_118 = point_from_barycentrics(model, A, B, C, 0.28918651, -0.056547619, 0.76736111, ID="X_118", classes=["center", "incident"])
            central_line(model, X_12, X_118, 12, 118, incident=True)
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            X_103 = eval_trilinear_point(model, A, B, C, 'a/((a - b)*cot(C) + (a - c)*cot(B))', ID="X_103", classes=["center", "incident"])
            central_line(model, X_56, X_103, 56, 103, incident=True)
            return promote_point_to_top(model, X_3022)


        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_3022 on the given reference triangle."""
            model = create_model('X_3022 = 6th STEVANOVIC POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03022(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-03022.json"))
            write_center_svg(
                model_acute,
                here / "x-03022.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )