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

Function _check_between

numericals.py:550–552  ·  view source on GitHub ↗

Whether a is between b & c.

(a: Point, b: Point, c: Point)

Source from the content-addressed store, hash-verified

548
549
550def _check_between(a: Point, b: Point, c: Point) -> bool:
551 """Whether a is between b & c."""
552 return (a - b).dot(c - b) > 0 and (a - c).dot(b - c) > 0
553
554
555def circle_segment_intersect(

Callers 1

circle_segment_intersectFunction · 0.85

Calls 1

dotMethod · 0.45

Tested by

no test coverage detected