MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / readTransform

Function readTransform

deps/physx/physx/samples/samplebase/RawLoader.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static PxTransform readTransform(File* fp, PxReal scale)
151{
152 PxTransform tr;
153 tr.p.x = scale * readFloat(fp);
154 tr.p.y = scale * readFloat(fp);
155 tr.p.z = scale * readFloat(fp);
156
157 tr.q.x = readFloat(fp);
158 tr.q.y = readFloat(fp);
159 tr.q.z = readFloat(fp);
160 tr.q.w = readFloat(fp);
161
162 PX_ASSERT(tr.isValid());
163
164 return tr;
165}
166
167static void readVertexArray(File* fp, PxVec3* verts, PxU32 nbVerts)
168{

Callers 1

loadRAWfileFunction · 0.85

Calls 2

readFloatFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected