MCPcopy 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

10namespace snap::drawing {
11
12Scalar Point::length(Scalar dx, Scalar dy) {
13 Scalar mag2 = dx * dx + dy * dy;
14 return sqrtf(mag2);
15}
16
17void Rect::join(const Rect& r) {
18 if (r.isEmpty()) {

Callers 2

PathInterpolatorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected