Мне просто нужно было, поэтому я придумал это решение. Язык является maxscript, но его следует легко перевести на любой другой язык. sideA, sideB и CircleRadius являются скалярами, остальные переменные являются точками как [x, y, z]. Я предполагаю, что z = 0 решить на плоскости XY
fn projectPoint p1 p2 p3 = --project p1 perpendicular to the line p2-p3
(
local v= normalize (p3-p2)
local p= (p1-p2)
p2+((dot v p)*v)
)
fn findIntersectionLineCircle CircleCenter CircleRadius LineP1 LineP2=
(
pp=projectPoint CircleCenter LineP1 LineP2
sideA=distance pp CircleCenter
--use pythagoras to solve the third side
sideB=sqrt(CircleRadius^2-sideA^2) -- this will return NaN if they don't intersect
IntersectV=normalize (pp-CircleCenter)
perpV=[IntersectV.y,-IntersectV.x,IntersectV.z]
--project the point to both sides to find the solutions
solution1=pp+(sideB*perpV)
solution2=pp-(sideB*perpV)
return #(solution1,solution2)
)
просто удалите width:350px
внутри .our-work-container .header-section .brand-square
class
найдите рабочую скрипту здесь
http://jsfiddle.net/15xLs49j/2/
Но, как совет, не рекомендуется применять статическую высоту, так как ваш контент должен быть отзывчивым, а статические значения в css могут разрушить отзывчивость.