Math problem: Determine the corner radius of an inner border based on outer corner radius/thickness(数学问题:根据外角半径/厚度确定内边界的角半径)
问题描述
这是数学高手(不是我最擅长的科目)的数学/几何问题.这是针对 WPF 的,但无论如何都应该足够通用以解决问题:
Here's a math/geometry problem for the math whizzes (not my strongest subject). This is for WPF, but should be general enough to solve regardless:
我有两个嵌入的边框元素,外边的元素具有一定的圆角半径,R 和边框厚度,T.给定这两个值,内边框的圆角半径应该是多少,R' 应该设置为两个角边缘不重叠或没有孔?
I have two embedded Border elements, with the outer one having a certain corner radius, R and border thickness, T. Given these two values, what should the corner radius of the inner Border, R' be set to such that the two corner edges meet with no overlap or holes?
到目前为止,我一直在关注它,但如果有人能给我一个合适的公式,那就太好了.如果可以的话,请尊重点!;)
So far I've just been eyeballing it, but if someone can give me a proper formula that would be great. Respect points if you can!! ;)
推荐答案
T'/2 + R` = R - T/2
T'/2 + R` = R - T/2
或
对于给定的 T、R 和 T',则 R' = R - T/2 - T'/2
For a given T, R and T' then R' = R - T/2 - T'/2
因此,例如,对于 (T=10) 的外边框厚度和 (R=8) 的半径,以及 (T'=4) 的内边框厚度,您需要 1 的内边框半径.
So for instance for an outer border thickness of (T=10), and radius of (R=8), and an inner border thickness of (T'=4), you'd need an inner border radius of 1.
这篇关于数学问题:根据外角半径/厚度确定内边界的角半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:数学问题:根据外角半径/厚度确定内边界的角半径
				
        
 
            
        - 使用 rss + c# 2022-01-01
 - 带问号的 nvarchar 列结果 2022-01-01
 - 是否可以在 .Net 3.5 中进行通用控件? 2022-01-01
 - 在 C# 中异步处理项目队列 2022-01-01
 - C# 通过连接字符串检索正确的 DbConnection 对象 2022-01-01
 - Azure Active Directory 与 MVC,客户端和资源标识同一 2022-01-01
 - Windows 喜欢在 LINUX 中使用 MONO 进行服务开发? 2022-01-01
 - CanBeNull和ReSharper-将其用于异步任务? 2022-01-01
 - 为什么 C# 中的堆栈大小正好是 1 MB? 2022-01-01
 - 在 LINQ to SQL 中使用 contains() 2022-01-01
 
						
						
						
						
						