MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / TEST

Function TEST

tests/test_linear_algebra.cpp:77–83  ·  view source on GitHub ↗

vec4 Tests

Source from the content-addressed store, hash-verified

75
76// vec4 Tests
77TEST(Vec4Test, DefaultConstructor) {
78 vec4 v;
79 EXPECT_FLOAT_EQ(v.x(), 0.0f);
80 EXPECT_FLOAT_EQ(v.y(), 0.0f);
81 EXPECT_FLOAT_EQ(v.z(), 0.0f);
82 EXPECT_FLOAT_EQ(v.w(), 0.0f);
83}
84
85TEST(Vec4Test, ParameterizedConstructor) {
86 const vec4 v(TEST_X1, TEST_Y1, TEST_Z1, TEST_W1);

Callers

nothing calls this directly

Calls 6

VerifyIdentityMatrixFunction · 0.85
set_identityMethod · 0.80
set_from_stMethod · 0.80
set_ortho_projectionMethod · 0.80
invMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected