MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Distance

Method Distance

SampleFramework12/v1.00/SF12_Math.cpp:478–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478float Float3::Distance(const Float3& a, const Float3& b)
479{
480 XMVECTOR x = a.ToSIMD();
481 XMVECTOR y = b.ToSIMD();
482 XMVECTOR length = XMVector3Length(XMVectorSubtract(x, y));
483 return XMVectorGetX(length);
484}
485
486float Float3::Length(const Float3& v)
487{

Callers

nothing calls this directly

Calls 1

ToSIMDMethod · 0.45

Tested by

no test coverage detected