raygeo.sketch.snap.spatial
IndexedLine
coordinate
coordinate: float
snap_line
snap_line: Optional[types.SnapLine]
SnapLineIndex
add()
add(snap_line: types.SnapLine) -> None
| Parameter | Type | Description |
|---|---|---|
snap_line | types.SnapLine | |
| Returns | None |
add_all()
add_all(snap_lines: Any) -> None
| Parameter | Type | Description |
|---|---|---|
snap_lines | Any | |
| Returns | None |
clear()
clear() -> None
| Parameter | Type | Description |
|---|---|---|
| Returns | None |
query()
query(
x: float,
y: float,
threshold: float,
) -> list[tuple[types.SnapLine, float]]
| Parameter | Type | Description |
|---|---|---|
x | float | |
y | float | |
threshold | float | |
| Returns | list[tuple[types.SnapLine, float]] |
query_horizontal()
query_horizontal(
y: float,
threshold: float,
) -> list[tuple[types.SnapLine, float]]
| Parameter | Type | Description |
|---|---|---|
y | float | |
threshold | float | |
| Returns | list[tuple[types.SnapLine, float]] |
query_vertical()
query_vertical(
x: float,
threshold: float,
) -> list[tuple[types.SnapLine, float]]
| Parameter | Type | Description |
|---|---|---|
x | float | |
threshold | float | |
| Returns | list[tuple[types.SnapLine, float]] |