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); }
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; }