# Math question. finding distance to the edge of a plane in direction from center.

**URL:** <https://forums.unrealengine.com/t/math-question-finding-distance-to-the-edge-of-a-plane-in-direction-from-center/1193499>\
**Category:** Programming & Scripting\
**Tags:** math, unreal-engine, vector, question, Blueprint, CPP\
**Created:** [June 9, 2023, 4:56am UTC](https://forums.unrealengine.com/t/math-question-finding-distance-to-the-edge-of-a-plane-in-direction-from-center/1193499 "2023-06-09T04:56:54Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 10, 2023, 12:23am UTC](https://forums.unrealengine.com/t/math-question-finding-distance-to-the-edge-of-a-plane-in-direction-from-center/1193499/12 "2023-06-10T00:23:53Z")

</div>

Even though it’s for a box, this works incredibly well. I like it. I’m checking a few things then I’ll upload a blueprint function library version. Great work 🙂

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/e/b3e4919ae308d425df815064a3a7b23676f567a3.jpeg)

This works when measuring from the center to a point outward and works very well. Exactly what I need and asked for haha.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/7/d376bd0e1de92e4045ff48f407147060f709b0e0.png)

Usage demo based on an improved version of the template I updated earlier, method Pezzott1 made is included as a blueprint function library, I changed a few parameter names. Demo is set up to test intersections for any plane transform by any rotation step over tick.

Thanks all for the input, this is great. 😃

---

_[View the full topic](https://forums.unrealengine.com/t/math-question-finding-distance-to-the-edge-of-a-plane-in-direction-from-center/1193499)._
