From 18d79522356ba3599dc78ac4548d5d85687027b1 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 11 Feb 2021 20:00:45 -0800 Subject: [PATCH] Fixed chunk coordinate comments. --- OpenTESArena/src/World/Coord.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenTESArena/src/World/Coord.cpp b/OpenTESArena/src/World/Coord.cpp index 652f4a45c..83367f21b 100644 --- a/OpenTESArena/src/World/Coord.cpp +++ b/OpenTESArena/src/World/Coord.cpp @@ -14,9 +14,9 @@ CoordDouble2 CoordDouble2::operator-(const VoxelDouble2 &other) const VoxelDouble2 CoordDouble2::operator-(const CoordDouble2 &other) const { // Combine three vectors: - // 1) Other chunk origin to other point. - // 2) Other chunk origin to chunk origin. - // 3) Point to chunk origin. + // 1) Other chunk point to other chunk origin. + // 2) Other chunk origin to local chunk origin. + // 3) Local chunk origin to local point. const VoxelDouble2 otherPointToOtherOrigin = -other.point; const ChunkInt2 chunkDiff = this->chunk - other.chunk; @@ -37,9 +37,9 @@ CoordDouble3 CoordDouble3::operator+(const VoxelDouble3 &other) const VoxelDouble3 CoordDouble3::operator-(const CoordDouble3 &other) const { // Combine three vectors: - // 1) Other chunk origin to other point. - // 2) Other chunk origin to chunk origin. - // 3) Point to chunk origin. + // 1) Other chunk point to other chunk origin. + // 2) Other chunk origin to local chunk origin. + // 3) Local chunk origin to local point. const VoxelDouble3 otherPointToOtherOrigin = -other.point; const ChunkInt2 chunkDiff = this->chunk - other.chunk;