Lines Matching +full:- +full:- +full:cross +full:- +full:file
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
19 REPORTER_ASSERT(r, grvx::cross({0,1}, {0,1}) == 0); in DEF_TEST()
20 REPORTER_ASSERT(r, grvx::cross({1,0}, {1,0}) == 0); in DEF_TEST()
21 REPORTER_ASSERT(r, grvx::cross({1,1}, {1,1}) == 0); in DEF_TEST()
22 REPORTER_ASSERT(r, grvx::cross({1,1}, {1,-1}) == -2); in DEF_TEST()
23 REPORTER_ASSERT(r, grvx::cross({1,1}, {-1,1}) == 2); in DEF_TEST()
27 REPORTER_ASSERT(r, grvx::dot({1,1}, {1,-1}) == 0); in DEF_TEST()
29 REPORTER_ASSERT(r, grvx::dot({1,1}, {-1,-1}) == -2); in DEF_TEST()
33 float a=rand.nextRangeF(-1,1), b=rand.nextRangeF(-1,1), c=rand.nextRangeF(-1,1), in DEF_TEST()
34 d=rand.nextRangeF(-1,1); in DEF_TEST()
37 grvx::cross({a,b}, {c,d}), SkPoint::CrossProduct({a,b}, {c,d}), kTolerance)); in DEF_TEST()