Skip to content
Snippets Groups Projects
Unverified Commit 424595ce authored by Gabriele Buondonno's avatar Gabriele Buondonno Committed by GitHub
Browse files

[test_geometry] Test constructor from vector (#1)

parent 61d25345
No related branches found
No related tags found
No related merge requests found
Pipeline #12889 passed with warnings
......@@ -18,6 +18,10 @@ q.normalize()
assert(isapprox(np.linalg.norm(q.coeffs()),q.norm()))
assert(isapprox(np.linalg.norm(q.coeffs()),1))
v = np.array([0.5,-0.5,0.5,0.5])
qv = Quaternion(v)
assert(isapprox(qv.coeffs(), v))
r = AngleAxis(q)
q2 = Quaternion(r)
assert(q==q)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment