MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / GetAvgUnitVector

Function GetAvgUnitVector

CPP/Clipper2Lib/src/clipper.offset.cpp:94–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94inline PointD GetAvgUnitVector(const PointD& vec1, const PointD& vec2)
95{
96 return NormalizeVector(PointD(vec1.x + vec2.x, vec1.y + vec2.y));
97}
98
99inline bool IsClosedPath(EndType et)
100{

Callers 2

DoSquareMethod · 0.85
DoSquareMethod · 0.85

Calls 2

NormalizeVectorFunction · 0.85
PointDClass · 0.85

Tested by

no test coverage detected