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

Method GetPlane

Source/Engine/Serialization/JsonTools.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236Plane JsonTools::GetPlane(const Value& value)
237{
238 Plane result;
239 const auto mD = value.FindMember("D");
240 result.Normal = GetVector3(value, "Normal", Vector3::One);
241 result.D = (Real)(mD != value.MemberEnd() ? mD->value.GetDouble() : 0.0);
242 return result;
243}
244
245Rectangle JsonTools::GetRectangle(const Value& value)
246{

Callers

nothing calls this directly

Calls 3

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetVector3Function · 0.70

Tested by

no test coverage detected