Check whether an object is convex, not empty quad-like. It must be a sequence of 4 number pairs.
(q: typing.Any)
| 22079 | |
| 22080 | |
| 22081 | def CheckQuad(q: typing.Any) -> bool: |
| 22082 | """Check whether an object is convex, not empty quad-like. |
| 22083 | |
| 22084 | It must be a sequence of 4 number pairs. |
| 22085 | """ |
| 22086 | try: |
| 22087 | q0 = Quad(q) |
| 22088 | except Exception: |
| 22089 | if g_exceptions_verbose > 1: exception_info() |
| 22090 | return False |
| 22091 | return q0.is_convex |
| 22092 | |
| 22093 | |
| 22094 | def CheckRect(r: typing.Any) -> bool: |
no test coverage detected
searching dependent graphs…