ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
This commit is contained in:
@@ -21,16 +21,16 @@
|
||||
|
||||
ChunkOrderHotspot::ChunkOrderHotspot(int x, int y, float addition)
|
||||
{
|
||||
this->m_x = x;
|
||||
this->m_y = y;
|
||||
this->m_addition = addition;
|
||||
this->m_x = x;
|
||||
this->m_y = y;
|
||||
this->m_addition = addition;
|
||||
}
|
||||
|
||||
double ChunkOrderHotspot::determineDistance(int x, int y)
|
||||
{
|
||||
int dx = x - this->m_x;
|
||||
int dy = y - this->m_y;
|
||||
double result = sqrt((double)(dx * dx + dy * dy));
|
||||
result += (double)this->m_addition;
|
||||
return result;
|
||||
int dx = x - this->m_x;
|
||||
int dy = y - this->m_y;
|
||||
double result = sqrt((double)(dx * dx + dy * dy));
|
||||
result += (double)this->m_addition;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user