MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetBoundingSphere

Method GetBoundingSphere

Source/Engine/Serialization/JsonTools.cpp:253–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253BoundingSphere JsonTools::GetBoundingSphere(const Value& value)
254{
255 BoundingSphere result;
256 const auto mRadius = value.FindMember("Radius");
257 result.Center = GetVector3(value, "Center", Vector3::Zero);
258 result.Radius = mRadius != value.MemberEnd() ? mRadius->value.GetFloat() : 0.0f;
259 return result;
260}
261
262BoundingBox JsonTools::GetBoundingBox(const Value& value)
263{

Callers

nothing calls this directly

Calls 4

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetFloatMethod · 0.80
GetVector3Function · 0.70

Tested by

no test coverage detected