示例#1
0
 public Segment(ref  VertexPositionColor point1, ref VertexPositionColor point2)
 {
     this.Point1 = new Point(point1.Position.X, point1.Position.Y);
     this.Point2 = new Point(point2.Position.X, point2.Position.Y);
 }
示例#2
0
        public void SetPoints(ref VertexPositionColor point1, ref VertexPositionColor point2)
        {
            this.Point1.X = point1.Position.X;
            this.Point1.Y = point1.Position.Y;

            this.Point2.X = point2.Position.X;
            this.Point2.Y = point2.Position.Y;
        }