mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -49,25 +49,23 @@ struct LineSegment
|
||||
}
|
||||
};
|
||||
|
||||
void CalculateTangentAndNormals(glsl::vec2 const & pt0, glsl::vec2 const & pt1,
|
||||
glsl::vec2 & tangent, glsl::vec2 & leftNormal,
|
||||
glsl::vec2 & rightNormal);
|
||||
void CalculateTangentAndNormals(glsl::vec2 const & pt0, glsl::vec2 const & pt1, glsl::vec2 & tangent,
|
||||
glsl::vec2 & leftNormal, glsl::vec2 & rightNormal);
|
||||
|
||||
void ConstructLineSegments(std::vector<m2::PointD> const & path, std::vector<glsl::vec4> const & segmentsColors,
|
||||
std::vector<LineSegment> & segments);
|
||||
|
||||
void UpdateNormals(LineSegment * segment, LineSegment * prevSegment, LineSegment * nextSegment);
|
||||
|
||||
std::vector<glsl::vec2> GenerateJoinNormals(
|
||||
dp::LineJoin joinType, glsl::vec2 const & normal1, glsl::vec2 const & normal2,
|
||||
float halfWidth, bool isLeft, float widthScalar, std::vector<glsl::vec2> * uv = nullptr);
|
||||
std::vector<glsl::vec2> GenerateJoinNormals(dp::LineJoin joinType, glsl::vec2 const & normal1,
|
||||
glsl::vec2 const & normal2, float halfWidth, bool isLeft, float widthScalar,
|
||||
std::vector<glsl::vec2> * uv = nullptr);
|
||||
|
||||
std::vector<glsl::vec2> GenerateCapNormals(
|
||||
dp::LineCap capType, glsl::vec2 const & normal1, glsl::vec2 const & normal2,
|
||||
glsl::vec2 const & direction, float halfWidth, bool isStart, int segmentsCount = 8);
|
||||
std::vector<glsl::vec2> GenerateCapNormals(dp::LineCap capType, glsl::vec2 const & normal1, glsl::vec2 const & normal2,
|
||||
glsl::vec2 const & direction, float halfWidth, bool isStart,
|
||||
int segmentsCount = 8);
|
||||
|
||||
glsl::vec2 GetNormal(LineSegment const & segment, bool isLeft, ENormalType normalType);
|
||||
|
||||
float GetProjectionLength(glsl::vec2 const & newPoint, glsl::vec2 const & startPoint, glsl::vec2 const & endPoint);
|
||||
} // namespace df
|
||||
|
||||
|
||||
Reference in New Issue
Block a user