2017-02-24から1日間の記事一覧
C supports the use of macro definitions that can simplify the code considerably. #define Sqr(x) ((x)*(x)) #define Cube(x) ((x)*(x)*(x)) #define VSub(v1, v2, v3) (v1).x = (v2).x - (v3).x, (v1).y = (v2).y - (v3).y The above definition will s…