Skip to content

Commit

Permalink
Fixed chunk coordinate comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Feb 12, 2021
1 parent 1ce5671 commit 18d7952
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions OpenTESArena/src/World/Coord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 18d7952

Please sign in to comment.