C# 能否向StylusPoint集合添加长度?

C# 能否向StylusPoint集合添加长度?,c#,wpf,C#,Wpf,我目前正在做一个项目,用用户输入来表示四面体。我有多个StylusPoints,它们相互使用作为参考,这意味着这些点不使用用户输入表示。我想知道,除了点之外,是否可以为点集合添加长度。EX)mystroke1Points.Add(新StylusPoint(point1,point2,length))其中我不确定长度。我将在下面发布我的示例 StylusPointCollection mystroke1Points = new StylusPointCollection();

我目前正在做一个项目,用用户输入来表示四面体。我有多个StylusPoints,它们相互使用作为参考,这意味着这些点不使用用户输入表示。我想知道,除了点之外,是否可以为点集合添加长度。EX)
mystroke1Points.Add(新StylusPoint(point1,point2,length))其中我不确定长度。我将在下面发布我的示例

 StylusPointCollection mystroke1Points = new StylusPointCollection();
                //top point
                mystroke1Points.Add(new StylusPoint(bpoint, 0));
                //left bottom point
                mystroke1Points.Add(new StylusPoint(((mds / 2) + bpoint), lph));
                //right bottom
                mystroke1Points.Add(new StylusPoint((-(mds / 2) + (bpoint)), rph));
                //top point
                mystroke1Points.Add(new StylusPoint(bpoint, 0));
                //middle point
                mystroke1Points.Add(new StylusPoint(bpoint, pvc));

                Stroke stroke1 = new Stroke(mystroke1Points);

                myink.Strokes.Add(stroke1);

                // dray middle triangles
                StylusPointCollection mystroke2Points = new StylusPointCollection();
                //lower right point
                mystroke2Points.Add(new StylusPoint((-(mds / 2) + (bpoint)), rph));
                //middle point
                mystroke2Points.Add(new StylusPoint(bpoint, pvc));
                //middle point
                mystroke2Points.Add(new StylusPoint(bpoint, pvc));
                //lower left point
                mystroke2Points.Add(new StylusPoint(((mds / 2) + bpoint), lph));

                Stroke stroke2 = new Stroke(mystroke2Points);

                myink.Strokes.Add(stroke2);

你不能从X/Y坐标中获得长度吗?是的,对于其中一些坐标,但是其他坐标使用点来完成三角形,例如
mystroke1Points.Add(new StylusPoint(bpoint,pvc))由于这是三维对象的二维表示,因此它可以具有不同于X/Y坐标长度的长度。这是可能的吗?@EricGross:您将如何使用长度值?我将使用它来增加线的长度,例如,线必须连接到点
(b点,0)
(b点,pvc)
,以便在所有点连接的地方形成三角形。然后,用户输入该直线的长度,该长度将在该直线仍连接到点时增加或减少,以形成有效的三角形。另外,我对编程相当陌生,因此我愿意接受除
StylusPoint
之外的建议。谢谢