# 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)

// 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)

}

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

Projekt-ID: #12519165

## Tildelt til:

jerezmjaime

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)
4.8

vtatarenko