# Collision with curved vertex

**URL:** <https://discourse.processing.org/t/collision-with-curved-vertex/7818>\
**Category:** Libraries\
**Created:** [January 24, 2019, 7:37pm UTC](https://discourse.processing.org/t/collision-with-curved-vertex/7818 "2019-01-24T19:37:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 28, 2019, 1:02am UTC](https://discourse.processing.org/t/collision-with-curved-vertex/7818/5 "2019-01-28T01:02:11Z")

</div>

You might be interested in this recent discussion of finding an intersection on a curve using line-line detection, where each part of the curve is a line segment.

> [@Get intersection point of line and CIE chromaticity curve](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685):
>
> First, let me lay out what I’ve done so far and what I’m trying to do with this partially completed program. I’m attempting to convert the RGB pixel values to their corresponding wavelength by: Converting RGB to XYZ [check], Converting XYZ to Yxy [check], and Defining the dominant wavelength of xy [in progress]. The process of calculating the dominant wavelength of xy is laid out in [1,2] and summarized as follows for my purposes: 'Construct a line between the chromaticity coordinates of …

You could use circle-line collision detection in a similar approach.

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

---

_[View the full topic](https://discourse.processing.org/t/collision-with-curved-vertex/7818)._
