Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Auxiliary/PointExtensions.cs @ 13757

Last change on this file since 13757 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 405 bytes
Line 
1using System.Windows;
2using System;
3using Microsoft.Research.DynamicDataDisplay.Common.Auxiliary;
4
5namespace Microsoft.Research.DynamicDataDisplay
6{
7  public static class PointExtensions
8  {
9    public static Vector ToVector(this Point pt)
10    {
11      return new Vector(pt.X, pt.Y);
12    }
13
14    public static bool IsFinite(this Point pt)
15    {
16      return pt.X.IsFinite() && pt.Y.IsFinite();
17    }
18  }
19}
Note: See TracBrowser for help on using the repository browser.