MCPcopy Create free account
hub / github.com/comaps/comaps / UpdateNormals

Function UpdateNormals

libs/drape_frontend/line_shape_helper.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void UpdateNormals(LineSegment * segment, LineSegment * prevSegment, LineSegment * nextSegment)
118{
119 ASSERT(segment != nullptr, ());
120
121 if (prevSegment != nullptr)
122 UpdateNormalBetweenSegments(prevSegment, segment);
123
124 if (nextSegment != nullptr)
125 UpdateNormalBetweenSegments(segment, nextSegment);
126}
127
128std::vector<glsl::vec2> GenerateJoinNormals(dp::LineJoin joinType, glsl::vec2 const & normal1,
129 glsl::vec2 const & normal2, float halfWidth, bool isLeft, float widthScalar,

Callers 3

PrepareGeometryMethod · 0.85
PrepareArrowGeometryMethod · 0.85

Calls 2

ASSERTFunction · 0.85

Tested by

no test coverage detected