Mesh-processing-library/test/tVectorF.ref

26 строки
745 B
Plaintext

v2 = VectorF<11>(17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37)
v3 = VectorF<11>(17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37)
v1 = VectorF<11>(34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74)
v2-v3 = VectorF<11>(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
dot(v1, v3) = 16918
v1 = VectorF<11>(17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37)
sum(v1) = 297
mag2(v1) = 8459
mag2(v1/2.f) = 2114.75
dist2(v1, v1/2.f) = 2114.75
min(v1, v2+VecF(2.f)) = VectorF<11>(17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37)
max(v1, v2+VecF(3.f)) = VectorF<11>(20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40)
v1[7] = 31
v1[8] = 33
v1[9] = 35
v1[10] = 37
sizeof(v1) = 4
sizeof(v2) = 8
sizeof(v3) = 12
sizeof(v4) = 16
sizeof(v5) = 32
sizeof(v6) = 32
sizeof(v7) = 32
sizeof(v8) = 32
sizeof(v9) = 48