コード例 #1
0
ファイル: PortablePoint.cs プロジェクト: rjshaver/core
        public static PortablePoint From <T> (T origin)
        {
            PortablePoint result = new PortablePoint();

            result.X = (origin as dynamic).X;
            result.Y = (origin as dynamic).Y;
            return(result);
        }
コード例 #2
0
ファイル: PortablePoint.cs プロジェクト: rjshaver/core
 public bool Equals(PortablePoint value)
 {
     return(System.Math.Abs(value.X - X) < EPSILON && System.Math.Abs(value.Y - Y) < EPSILON);
 }