X1694

EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE)

X1694 is the exsimilicenter(Brocard circle,Apollonius circle).
< 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, 6 }: Brocard Axis { 10, 1348 }: Central Line L(10, 1348) { 181, 1675 }: Central Line L(181, 1675) { 1674, 1682 }: Central Line L(1674, 1682) { 43, 1705 }: Central Line L(43, 1705) { 1695, 1704 }: Central Line L(1695, 1704) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_1348 = INSIMILICENTER(NINE-POINT CIRCLE, BROCARD CIRCLE) (0.5517, 0.2023) X_181 = APOLLONIUS POINT (0.6163, 0.3093) X_1675 = EXSIMILICENTER(INCIRCLE, BROCARD CIRCLE) (0.5349, 0.1503) X_1674 = INSIMILICENTER(INCIRCLE, BROCARD CIRCLE) (0.5563, 0.1989) X_1682 = INSIMILICENTER(INCIRCLE, APOLLONIUS CIRCLE) (0.5367, 0.1744) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_1705 = EXSIMILICENTER(BEVAN CIRCLE, BROCARD CIRCLE) (0.5627, 0.2070) X_1695 = INSIMILICENTER(BEVAN CIRCLE, APOLLONIUS CIRCLE) (0.3697, -0.1216) X_1704 = INSIMILICENTER(BEVAN CIRCLE, BROCARD CIRCLE) (0.5395, 0.1662) X_1694 = EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE) (0.5659, 0.2109) A B C X3 X6 X10 X1348 X181 X1675 X1674 X1682 X43 X1705 X1695 X1704 X1694 (a, b, c) = (5, 6, 7) | AB = 1

X1694 (EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1694 = EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE)."""

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


        def construct_x_01694(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1694 = EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE) on reference triangle ABC."""
            X_1694 = eval_trilinear_point(model, A, B, C, '(e*(2*r*s*sin(A) + (r**(2) - s**(2))*cos(A)) + (r**(2) + s**(2))*cos(A -  omega  ))', ID="X_1694", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            central_line(model, X_3, X_6, 3, 6, incident=True)
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_1348 = eval_trilinear_point(model, A, B, C, 'e*cos(B - C) + cos(A -  omega  )', ID="X_1348", classes=["center", "incident"])
            central_line(model, X_10, X_1348, 10, 1348, incident=True)
            X_181 = eval_trilinear_point(model, A, B, C, 'a*(b + c)**(2)/(b + c - a)', ID="X_181", classes=["center", "incident"])
            X_1675 = eval_trilinear_point(model, A, B, C, 'e - cos(A -  omega  )', ID="X_1675", classes=["center", "incident"])
            central_line(model, X_181, X_1675, 181, 1675, incident=True)
            return promote_point_to_top(model, X_1694)


        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_1694 on the given reference triangle."""
            model = create_model('X_1694 = EXSIMILICENTER(BROCARD CIRCLE,APOLLONIUS CIRCLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01694(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-01694.json"))
            write_center_svg(
                model_acute,
                here / "x-01694.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )