Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ length
Method
length
snap_drawing/src/snap_drawing/cpp/Utils/Geometry.cpp:12–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
namespace snap::drawing {
11
12
Scalar Point::length(Scalar dx, Scalar dy) {
13
Scalar mag2 = dx * dx + dy * dy;
14
return sqrtf(mag2);
15
}
16
17
void Rect::join(const Rect& r) {
18
if (r.isEmpty()) {
Callers
2
PathInterpolator
Method · 0.45
PathInterpolator.cpp
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected