MCPcopy Create free account
hub / github.com/MyGUI/mygui / squaredDistance

Function squaredDistance

UnitTests/UnitTest_TextureAnimations/WobbleNodeAnimator.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11 static float squaredDistance(const MyGUI::FloatPoint& _value, const MyGUI::FloatPoint& _other)
12 {
13 float x1 = _other.left - _value.left;
14 float y1 = _other.top - _value.top;
15
16 return x1 * x1 + y1 * y1;
17 }
18
19 static float getLength(const MyGUI::FloatPoint& _value)
20 {

Callers 1

buildQuadVertexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected