cgfs:filled_triangles
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
cgfs:filled_triangles [2024/06/13 01:27] – freemikan | cgfs:filled_triangles [2024/07/12 03:19] (現在) – freemikan | ||
---|---|---|---|
行 1: | 行 1: | ||
- | <codeprism lang=cpp el=true css=full> | + | {{: |
+ | |||
+ | <file cpp> | ||
#include < | #include < | ||
行 108: | 行 110: | ||
x01.pop_back(); | x01.pop_back(); | ||
- | assert(x01.size() + x12.size() == x02.size()); | ||
auto x012 = std:: | auto x012 = std:: | ||
+ | assert(x012.size() == x02.size()); | ||
+ | |||
auto corner = std:: | auto corner = std:: | ||
std:: | std:: | ||
行 117: | 行 120: | ||
auto & | auto & | ||
auto m = x012.size() / 2; | auto m = x012.size() / 2; | ||
- | |||
if (x02[m] < x012[m]) { | if (x02[m] < x012[m]) { | ||
std:: | std:: | ||
行 153: | 行 155: | ||
} | } | ||
} | } | ||
- | </codeprism> | + | </file> |
cgfs/filled_triangles.1718209654.txt.gz · 最終更新: 2024/06/13 01:27 by freemikan