Need function to find center of fillet and tangent points with two lines

I have two, 2-D lines specified by two points (x1, y1) - (x2, y2) and (x3, y3) - (x4, y4). I also have a fillet radius.

I am looking for a function to calculate the coordinates of the center location of the fillet and also the tangent points with the two lines.

Can be written in C, c# or swift. My preference would be swift but the other two languages would be fine. Please specify the language in your bid!

// line from (x1, y1) to (x2, y2)

// line from (x3, y3) to (x4, y4)

// fillet radius

// return center of fillet and tangent points of two lines

func findFillet( radius: Double, x1: Double, y1: Double, x2: Double, y2: Double, x3: Double, y3: Double, x4: Double, y4: Double) -> (centerX: Double, centerY: Double, tangent1X: Double, tangent1Y: Double, tangent2X: Double, tangent2Y: Double)


return (centerX, centerY, tangent1X, tangent1Y, tangent2X, tangent2Y)


Evner: C programmering, C# Programmering, Matematik, Matlab and Mathematica, Swift

Se mere: call center need agents, call center need calling minutes, call center need campaigns, google maps pin points lines, center need projects, call center need project, outbound call center need database, process center need security, call center need process, call center need projects, sales center need, visual basic drawing points lines, domestic call center need process, call center need data entry, call center need

Om arbejdsgiveren:
( 131 bedømmelser ) Bonita Springs, United States

Projekt ID: #12519165

Tildelt til:


C. I'm a CAD developer I guaranty the best code free from mathematical exeptions divisions by cero and geometrical problems.

$25 USD in 20 dage
(3 bedømmelser)

3 freelancere byder i gennemsnit $30 på dette job


Hi there! I can solve the problem using C language. Please contact me for a details. Waiting for your response. Regards, Valentin

$30 USD in 2 dage
(29 bedømmelser)

I will make this in C :) or matlab --------------------------------------------------------------------------------------------------------------------------------------------------------------------

$35 USD på 1 dag
(0 bedømmelser)