MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / rotate_simtri

Function rotate_simtri

dd.py:446–459  ·  view source on GitHub ↗

Rotate points around for similar triangle predicates.

(
    a: gm.Point, b: gm.Point, c: gm.Point, x: gm.Point, y: gm.Point, z: gm.Point
)

Source from the content-addressed store, hash-verified

444
445
446def rotate_simtri(
447 a: gm.Point, b: gm.Point, c: gm.Point, x: gm.Point, y: gm.Point, z: gm.Point
448) -> Generator[tuple[gm.Point, ...], None, None]:
449 """Rotate points around for similar triangle predicates."""
450 yield (z, y, x, c, b, a)
451 for p in [
452 (b, c, a, y, z, x),
453 (c, a, b, z, x, y),
454 (x, y, z, a, b, c),
455 (y, z, x, b, c, a),
456 (z, x, y, c, a, b),
457 ]:
458 yield p
459 yield p[::-1]
460
461
462def match_cong_cong_cong_cyclic(

Calls

no outgoing calls

Tested by

no test coverage detected