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 | |
---|---|
File size: 405 bytes |
Line | |
---|---|
1 | using System.Windows; |
2 | using System; |
3 | using Microsoft.Research.DynamicDataDisplay.Common.Auxiliary; |
4 | |
5 | namespace 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.