# Binding 2 wood logs like scouts

**URL:** <https://discourse.threejs.org/t/binding-2-wood-logs-like-scouts/47138>\
**Category:** Questions\
**Tags:** lines\
**Created:** [January 21, 2023, 1:20pm UTC](https://discourse.threejs.org/t/binding-2-wood-logs-like-scouts/47138 "2023-01-21T13:20:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Immugio](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/immugio/32/6686_2.png) [@Immugio](https://discourse.threejs.org/u/Immugio)\
**Post date:** [January 22, 2023, 8:06am UTC](https://discourse.threejs.org/t/binding-2-wood-logs-like-scouts/47138/3 "2023-01-22T08:06:36Z")

</div>

Hi @Pop_John,

As @prisoner849 suggested, you could use this [set of utilities for lines](https://discourse.threejs.org/t/set-of-utilities-for-2d-and-3d-line-math/46614) to solve this

Example

```javascript
const line1 = new Line3D(new Vec3(0, 5, 20), new Vec3(10, 5, 20));
const line2 = new Line3D(new Vec3(5, 0, 0), new Vec3(5, 10, 0));
const intersection = line1.intersect(line2);
// The resulting "intersection" is a line with the start at Vec3(5, 5, 20) and the end at Vec3(5, 5, 0)

```

You can either install the library via npm

```javascript
npm i @immugio/three-math-extensions

```

Or just grab the method from the source code

> <https://github.com/Immugio/three-math-extensions/blob/67d9c328e08cc0a5599932d2f0529e97f31c9213/src/Line3D.ts#L448>

---

_[View the full topic](https://discourse.threejs.org/t/binding-2-wood-logs-like-scouts/47138)._
