# Spline - Circular arc - Endpoints not straight

**URL:** <https://forums.unrealengine.com/t/spline-circular-arc-endpoints-not-straight/402342>\
**Category:** Rendering\
**Tags:** tangents, unreal-engine, Spline, question, CPP\
**Created:** [August 20, 2017, 1:46pm UTC](https://forums.unrealengine.com/t/spline-circular-arc-endpoints-not-straight/402342 "2017-08-20T13:46:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krustenkaese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krustenkaese](https://forums.unrealengine.com/u/Krustenkaese)\
**Post date:** [August 20, 2017, 1:46pm UTC](https://forums.unrealengine.com/t/spline-circular-arc-endpoints-not-straight/402342/1 "2017-08-20T13:46:37Z")

</div>

Hi all together,

Currently i´ve a problem with splines and circular arcs  
The Circular arc is calculated with three points (two are intersecting the circle, one is the control point for calculation)

My problem seems to be that the tangent of the endpoints is effected by the other points.  
To visualize the problem, i´ve created a circle out of four independent curves, all same size and grid aligned (x4000, y4000)

 ![210493-issue-4-splines-circle.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c5a593343d296a0fba09ba5fb0a4fd0ef8c44b5.jpeg)

I´ve already tried setting the  
bStationaryEndpoints = true - Leads in display issues in the end and doesn´t help.  
Setting SplinePoints.Linear, same issue (Does the same like bStationaryEndpoints)

Anybody can help me out here, i´ve right now no clue what i´ve to do to get it:  
a proper circle if i connect for splines (without using closed loop or connecting them, they should look proper without that at all)  
In general they should look good alone too.

Thank you very much!

Cheers,  
Maik

---

<div class="post-metadata">

**Author:** ![Krustenkaese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krustenkaese](https://forums.unrealengine.com/u/Krustenkaese)\
**Post date:** [August 22, 2017, 10:52am UTC](https://forums.unrealengine.com/t/spline-circular-arc-endpoints-not-straight/402342/2 "2017-08-22T10:52:09Z")

</div>

Hi all,

Anybody have an idea what i could implement/change to resolve this?  
Do i need to calculate the tangents on my own?

Thanks and best regards,

Maik

---

<div class="post-metadata">

**Author:** ![Krustenkaese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krustenkaese](https://forums.unrealengine.com/u/Krustenkaese)\
**Post date:** [September 13, 2017, 2:47pm UTC](https://forums.unrealengine.com/t/spline-circular-arc-endpoints-not-straight/402342/3 "2017-09-13T14:47:36Z")

</div>

For everybody who wants to know, i was able to fix the issue by calculating an additional point that is “leaving” the search in half angle.

So if you would calculate the circle just calculate one point in beginning and end more, grab the directions between the beginning three and end three and you can calculate the “center” direction. With that i´ve applied a new point in proper distance and my circle was i wanted to have it first.

THX still for everybody who read that and was taking time to think about a solution.

All best,  
Maik
