# How can I check if a line is touching a specific point?

**URL:** https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725
**Category:** Coding Questions
**Created:** [February 7, 2025, 11:31pm UTC](https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725 "2025-02-07T23:31:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sel/32/20433_2.png) [@Sel](https://discourse.processing.org/u/Sel)
#### Post date: [February 7, 2025, 11:31pm UTC](https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725/1 "2025-02-07T23:31:07Z")

</div>

How can i check if a line is touching a _specific_ point?

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [February 7, 2025, 11:49pm UTC](https://discourse.processing.org/t/how-can-i-check-if-a-line-is-touching-a-specific-point/45725/2 "2025-02-07T23:49:33Z")

</div>

> **[Collision Detection](https://jeffreythompson.org/collision-detection/line-point.php)**
>
> An online book about collision detection using Processing.
