MCPcopy Create free account
hub / github.com/admtrv/objcurses / sort_x

Method sort_x

entities/rendering/buffer.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9// Projection methods
10
11Projection Projection::sort_x() const
12{
13 std::array arr = {p1, p2, p3};
14
15 std::ranges::sort(arr, [](const Vec3 &a, const Vec3 &b) { return a.x < b.x; });
16
17 return {arr[0], arr[1], arr[2], color};
18}
19
20float Projection::limit_y1(const float x) const
21{

Callers 1

draw_projectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected