• Home
  • Raw
  • Download

Lines Matching refs:Vector2

22     ASSERT_TRUE(Vector2(2.0, 3.0) == Vector2(2.0, 3.0));  in TEST()
23 ASSERT_TRUE(Vector2(2.0, 3.0) != Vector2(2.0, 4.0)); in TEST()
26 ASSERT_EQ(Vector2(2.0, 3.0), Vector2(2.0, 3.0)); in TEST()
27 ASSERT_NE(Vector2(2.0, 3.0), Vector2(2.0, 4.0)); in TEST()
40 Vector2 vec(1.0, 2.0); in TEST()
46 ASSERT_EQ(Vector2(3.0, 4.0), vec); in TEST()
54 Vector2 vec(3.0); in TEST()
61 Vector2 vec(Vector2(1.0, 2.0)); in TEST()
68 Vector4 vec(1.0, Vector2(2.0, 3.0), 4.0); in TEST()
79 Vector2 vec(1.0, 2.0); in TEST()
88 ASSERT_EQ(Vector2(3.0, 4.0), vec); in TEST()
96 Vector2 vec = Vector2::Load(data); in TEST()
101 vec = Vector2(3.0, 4.0); in TEST()
102 Vector2::Store(vec, data); in TEST()
111 ASSERT_EQ(Vector2(2.0, 3.0), +Vector2(2.0, 3.0)); in TEST()
112 ASSERT_EQ(Vector2(-2.0, -3.0), -Vector2(2.0, 3.0)); in TEST()
113 ASSERT_EQ(Vector2(4.0, 6.0), Vector2(1.0, 2.0) + Vector2(3.0, 4.0)); in TEST()
114 ASSERT_EQ(Vector2(-2.0, -2.0), Vector2(1.0, 2.0) - Vector2(3.0, 4.0)); in TEST()
115 ASSERT_EQ(Vector2(3.0, 8.0), Vector2(1.0, 2.0) * Vector2(3.0, 4.0)); in TEST()
116 ASSERT_EQ(Vector2(3.0, 2.0), Vector2(3.0, 4.0) / Vector2(1.0, 2.0)); in TEST()
118 ASSERT_EQ(Vector2(2.0, 4.0), Vector2(1.0, 2.0) * 2); in TEST()
119 ASSERT_EQ(Vector2(2.0, 4.0), 2 * Vector2(1.0, 2.0)); in TEST()
120 ASSERT_EQ(Vector2(0.5, 1.0), Vector2(1.0, 2.0) / 2); in TEST()
127 Vector2 vec(1.0, 2.0); in TEST()
128 vec += Vector2(3.0, 4.0); in TEST()
129 ASSERT_EQ(Vector2(4.0, 6.0), vec); in TEST()
132 Vector2 vec(1.0, 2.0); in TEST()
133 vec -= Vector2(3.0, 4.0); in TEST()
134 ASSERT_EQ(Vector2(-2.0, -2.0), vec); in TEST()
137 Vector2 vec(1.0, 2.0); in TEST()
138 vec *= Vector2(3.0, 4.0); in TEST()
139 ASSERT_EQ(Vector2(3.0, 8.0), vec); in TEST()
142 Vector2 vec(3.0, 4.0); in TEST()
143 vec /= Vector2(1.0, 2.0); in TEST()
144 ASSERT_EQ(Vector2(3.0, 2.0), vec); in TEST()
147 Vector2 vec(1.0, 2.0); in TEST()
149 ASSERT_EQ(Vector2(2.0, 4.0), vec); in TEST()
152 Vector2 vec(1.0, 2.0); in TEST()
154 ASSERT_EQ(Vector2(0.5, 1.0), vec); in TEST()
161 Vector2 vec(3.0, 4.0); in TEST()
165 ASSERT_EQ(Vector2(0.6, 0.8), vec.normalized()); in TEST()
167 ASSERT_EQ(11.0, vec.dot(Vector2(1.0, 2.0))); in TEST()
173 Vector2 vec2(1.0, 2.0); in TEST()
191 ASSERT_EQ(Vector2(0.0, 2.0), vec2); in TEST()