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:
Diffstat (limited to 'source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp')
-rw-r--r--source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp b/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
index 11079878b4f..94110f0bcfe 100644
--- a/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
+++ b/source/blender/compositor/intern/COM_ChunkOrderHotspot.cpp
@@ -23,13 +23,15 @@
#include "COM_ChunkOrderHotspot.h"
#include <math.h>
-ChunkOrderHotspot::ChunkOrderHotspot(int x, int y, float addition) {
+ChunkOrderHotspot::ChunkOrderHotspot(int x, int y, float addition)
+{
this->x = x;
this->y = y;
this->addition = addition;
}
-double ChunkOrderHotspot::determineDistance(int x, int y) {
+double ChunkOrderHotspot::determineDistance(int x, int y)
+{
int dx = x-this->x;
int dy = y-this->y;
double result = sqrt((double)(dx*dx+dy*dy));