MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / main

Function main

website/examples/intro.cpp:6–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <cassert>
5
6int
7main()
8{
9 const Imath::V3f v (3.0f, 4.0f, 5.0f);
10
11 Imath::M44f M;
12 const Imath::V3f t(1.0f, 2.0f, 3.0f);
13 M.translate (t);
14
15 Imath::V3f p;
16 M.multVecMatrix(v, p);
17
18 std::cout << "What's your vector, Victor? " << p << std::endl;
19
20 Imath::V3f vt = v + t;
21 assert (p.equalWithAbsError(vt, 1e-6f));
22
23 return 0;
24}

Callers

nothing calls this directly

Calls 1

equalWithAbsErrorMethod · 0.80

Tested by

no test coverage detected