[英]Get info about a line using Win2d C#
I'm drawing a line with win2d and C# uwp. 我正在用win2d和C#uwp画一条线。 I would like to get infomation about that line such as the line length and even a list of points that are used to create that line.
我想获取有关该线的信息,例如线长,甚至是用于创建该线的点的列表。 I've tried everything I know and I just can't figure out a solution.
我已经尝试了所有我知道的东西,但我根本想不出解决方案。 Maybe I'm approaching this from the wrong angle?
也许我是从错误的角度来解决这个问题? Can anyone help?
有人可以帮忙吗?
If you have information about the start and end, can't you apply this? 如果您有关于开始和结束的信息,您是否可以应用? Length = (y1 - y2)^2 + (x1 - x2)^2
长度=(y1-y2)^ 2 +(x1-x2)^ 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.