# Parallel lines in 3D space

**URL:** <https://discourse.processing.org/t/parallel-lines-in-3d-space/41801>\
**Category:** Coding Questions\
**Created:** [April 23, 2023, 2:57pm UTC](https://discourse.processing.org/t/parallel-lines-in-3d-space/41801 "2023-04-23T14:57:48Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [April 27, 2023, 2:40pm UTC](https://discourse.processing.org/t/parallel-lines-in-3d-space/41801/20 "2023-04-27T14:40:43Z")

</div>

I will start a new topic for using vectors to find the line between two lines.

> [@Using vectors to find the line between two lines](https://discourse.processing.org/t/using-vectors-to-find-the-line-between-two-lines/41856):
>
> I can do this (see sketch) with lerp(), but it cannot be the best way. Using lerp() and starting at the desired angle, one would have to use tan(), then solve two equations before knowing what value to give lerp(). Then I would need to lengthen the line. All doable, but inelegant. I am guessing the cross formula is the way to go, but I could see further if I stood on the shoulders of giants. [lerp1] PVector a, b, c; PVector middle; float angle = 0.5; float m; void setup() { size(400, 400, …

Looking at [Points on the surface of a Sphere using beginShape(POINTS or QUADS) - #6 by glv](https://discourse.processing.org/t/points-on-the-surface-of-a-sphere-using-beginshape-points-or-quads/34425/6)  
I think @companje, @Chrisir , and @glv will have a better way to this.

---

_[View the full topic](https://discourse.processing.org/t/parallel-lines-in-3d-space/41801)._
