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

Function parse_vector3

src/core/json/sjson.cpp:596–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594 }
595
596 Vector3 parse_vector3(const char *json)
597 {
598 TempAllocator64 ta;
599 JsonArray arr(ta);
600 sjson::parse_array(arr, json);
601
602 Vector3 v;
603 v.x = sjson::parse_float(arr[0]);
604 v.y = sjson::parse_float(arr[1]);
605 v.z = sjson::parse_float(arr[2]);
606 return v;
607 }
608
609 Vector4 parse_vector4(const char *json)
610 {

Callers 14

test_sjsonFunction · 0.85
parse_uniformsFunction · 0.85
compileFunction · 0.85
compile_colliderFunction · 0.85
compile_moverFunction · 0.85
joint_common_parseFunction · 0.85
compile_hinge_jointFunction · 0.85
compile_d6_jointFunction · 0.85
compileFunction · 0.85
compile_transformFunction · 0.85
compile_lightFunction · 0.85
compile_fogFunction · 0.85

Calls 2

parse_arrayFunction · 0.70
parse_floatFunction · 0.70

Tested by 1

test_sjsonFunction · 0.68