Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-02-17 17:00:04 +0300
committerJeroen Bakker <jeroen@blender.org>2021-02-17 17:25:24 +0300
commitef53859d24a9720882e3ca6c5415faefec6fb82c (patch)
tree87fa30ad6398a1b902799e78403e4d116b26d7b2 /source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
parent8bca03056cac5a4d24e6aa1cf05448d372cf01d9 (diff)
Cleanup: Make ChunkOrderHotspot a struct
Diffstat (limited to 'source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp')
-rw-r--r--source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp b/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
index b111fba44b7..bbc98d086a6 100644
--- a/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
+++ b/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
@@ -21,16 +21,16 @@
ChunkOrderHotspot::ChunkOrderHotspot(int x, int y, float addition)
{
- this->m_x = x;
- this->m_y = y;
- this->m_addition = addition;
+ x = x;
+ y = y;
+ addition = addition;
}
-double ChunkOrderHotspot::determineDistance(int x, int y)
+double ChunkOrderHotspot::calc_distance(int x, int y)
{
- int dx = x - this->m_x;
- int dy = y - this->m_y;
+ int dx = x - x;
+ int dy = y - y;
double result = sqrt((double)(dx * dx + dy * dy));
- result += (double)this->m_addition;
+ result += (double)addition;
return result;
}