MCPcopy Create free account
hub / github.com/cuberite/cuberite / Sort

Method Sort

src/Cuboid.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void cCuboid::Sort(void)
56{
57 if (p1.x > p2.x)
58 {
59 std::swap(p1.x, p2.x);
60 }
61 if (p1.y > p2.y)
62 {
63 std::swap(p1.y, p2.y);
64 }
65 if (p1.z > p2.z)
66 {
67 std::swap(p1.z, p2.z);
68 }
69}
70
71
72

Callers 3

cPlacedPieceMethod · 0.80
CheckConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected