# Get intersection point of line and CIE chromaticity curve

**URL:** https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685
**Category:** Coding Questions
**Created:** [December 17, 2018, 2:45am UTC](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685 "2018-12-17T02:45:53Z")
**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: [December 19, 2018, 12:15am UTC](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685/5 "2018-12-19T00:15:18Z")

</div>

> [@ProsExplorer](#):
>
> I’ve managed to cause the line to intersect the curve, but how can I define the new x,y intersect point?

Are you, in general, wanting a line/line intersection formula for this? If I’m understanding your code right, your “curve” is actually a series of line segments. If you iterated over those curve segments and checked each against your line, zero or more of them will return a solution for a line-line intersection point.

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

- [Collision Detection](http://www.jeffreythompson.org/collision-detection/line-line.php)

---

_[View the full topic](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685)._
