예제 #1
0
        internal void testRelation(double x, double y, double x2, double y2, VectorRelation relation)
        {
            Vector v  = new Vector(x, y);
            Vector v2 = new Vector(x2, y2);
            var    r  = v.GetRelation(v2);

            Assert.Equal(r, relation);
        }
예제 #2
0
        public void Test_Relation(double x1, double y1, double x2, double y2, VectorRelation relation)
        {
            Vector v = new Vector {
                X = x1, Y = y1
            };
            Vector u = new Vector {
                X = x2, Y = y2
            };

            Assert.Equal(relation, VectorExtensions.GetRelation(v, u));
        }