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

Method Transform

Source/Engine/Serialization/JsonWriter.cpp:255–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void JsonWriter::Transform(const ::Transform& value)
256{
257 StartObject();
258 if (!value.Translation.IsZero())
259 {
260 JKEY("Translation");
261 Vector3(value.Translation);
262 }
263 if (!value.Orientation.IsIdentity())
264 {
265 JKEY("Orientation");
266 Quaternion(value.Orientation);
267 }
268 if (!value.Scale.IsOne())
269 {
270 JKEY("Scale");
271 Float3(value.Scale);
272 }
273 EndObject();
274}
275
276void JsonWriter::Transform(const ::Transform& value, const ::Transform* other)
277{

Callers 2

SerializeMethod · 0.45
SerializeFunction · 0.45

Calls 7

Float3Class · 0.85
IsIdentityMethod · 0.80
Vector3Class · 0.50
QuaternionFunction · 0.50
NearEqualFunction · 0.50
IsZeroMethod · 0.45
IsOneMethod · 0.45

Tested by

no test coverage detected