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

Function check_sameside

numericals.py:673–680  ·  view source on GitHub ↗
(points: list[Point])

Source from the content-addressed store, hash-verified

671
672
673def check_sameside(points: list[Point]) -> bool:
674 b, a, c, y, x, z = points
675 # whether b is to the same side of a & c as y is to x & z
676 ba = b - a
677 bc = b - c
678 yx = y - x
679 yz = y - z
680 return ba.dot(bc) * yx.dot(yz) > 0
681
682
683def check_para_or_coll(points: list[Point]) -> bool:

Callers

nothing calls this directly

Calls 1

dotMethod · 0.45

Tested by

no test coverage detected