示例#1
0
        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
 public bool Equals(PortablePoint value)
 {
     return(System.Math.Abs(value.X - X) < EPSILON && System.Math.Abs(value.Y - Y) < EPSILON);
 }