コード例 #1
0
ファイル: Point2i.cs プロジェクト: JohannesMP/Essence
        public Point2i(IPoint2 p)
        {
            ITuple2_Integer _p = p.AsTupleInteger();

            this.X = _p.X;
            this.Y = _p.Y;
        }
コード例 #2
0
ファイル: Point2i.cs プロジェクト: JohannesMP/Essence
        public bool Equals(IPoint2 other)
        {
            ITuple2_Integer _other = other.AsTupleInteger();

            return(this.Equals(_other.X, _other.Y));
        }
コード例 #3
0
ファイル: Point2i.cs プロジェクト: JohannesMP/Essence
        bool IEpsilonEquatable <IPoint2> .EpsilonEquals(IPoint2 other, double epsilon)
        {
            ITuple2_Integer _other = other.AsTupleInteger();

            return(this.Equals(_other.X, _other.Y));
        }