MCPcopy Create free account
hub / github.com/defold/defold / Vector3Equals

Function Vector3Equals

engine/render/src/render/light.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 static inline bool Vector3Equals(const dmVMath::Vector3& a, const dmVMath::Vector3& b)
113 {
114 const float eps = 1e-4f;
115 dmVMath::Vector3 diff = a - b;
116 float dist2 = dmVMath::LengthSqr(diff);
117 return dist2 <= eps * eps;
118 }
119
120 void SetLightInstance(HRenderContext render_context, HLightInstance instance, dmVMath::Point3 position, dmVMath::Quat rotation)
121 {

Callers 1

SetLightInstanceFunction · 0.85

Calls 1

LengthSqrFunction · 0.50

Tested by

no test coverage detected