MCPcopy Create free account
hub / github.com/crownengine/crown / parse_quaternion

Function parse_quaternion

src/core/json/sjson.cpp:623–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621 }
622
623 Quaternion parse_quaternion(const char *json)
624 {
625 TempAllocator64 ta;
626 JsonArray arr(ta);
627 sjson::parse_array(arr, json);
628
629 Quaternion q;
630 q.x = sjson::parse_float(arr[0]);
631 q.y = sjson::parse_float(arr[1]);
632 q.z = sjson::parse_float(arr[2]);
633 q.w = sjson::parse_float(arr[3]);
634 return q;
635 }
636
637 Matrix4x4 parse_matrix4x4(const char *json)
638 {

Callers 4

test_sjsonFunction · 0.85
compile_colliderFunction · 0.85
joint_common_parseFunction · 0.85
compile_transformFunction · 0.85

Calls 2

parse_arrayFunction · 0.70
parse_floatFunction · 0.70

Tested by 1

test_sjsonFunction · 0.68