Beispiel #1
0
        public Vector2i(IVector2 v)
        {
            ITuple2_Integer _v = v.AsTupleInteger();

            this.X = _v.X;
            this.Y = _v.Y;
        }
Beispiel #2
0
        public double Cross(IVector2 v2)
        {
            ITuple2_Integer _v2 = v2.AsTupleInteger();

            return(this.X * _v2.Y - this.Y * _v2.X);
        }
Beispiel #3
0
        public bool Equals(IVector2 other)
        {
            ITuple2_Integer _other = other.AsTupleInteger();

            return(this.Equals(_other.X, _other.Y));
        }
Beispiel #4
0
        public double Dot(IVector2 v2)
        {
            ITuple2_Integer _v2 = v2.AsTupleInteger();

            return(this.X * _v2.X + this.Y * _v2.Y);
        }
Beispiel #5
0
        bool IEpsilonEquatable <IVector2> .EpsilonEquals(IVector2 other, double epsilon)
        {
            ITuple2_Integer _other = other.AsTupleInteger();

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