Simon Bruder
882989af8f
Add note on filtering
2023-05-09 23:22:35 +02:00
Simon Bruder
e9f79b7288
Add filtering script
2023-05-09 23:20:41 +02:00
Simon Bruder
b3a9d83d10
u02/util: Simplify conditions
2023-05-09 22:59:38 +02:00
Simon Bruder
d9f0e1493b
u02: Implement sweep line tool
2023-05-09 22:59:38 +02:00
Simon Bruder
a680a641dd
u02/tests: Lower target precision for barycentric coordinates
2023-05-09 22:59:38 +02:00
Simon Bruder
5c57e0e419
u02: Test edge case for barycentric coordinates
2023-05-09 22:59:38 +02:00
Simon Bruder
362966d597
u02: Extract slope function
2023-05-09 22:59:38 +02:00
Simon Bruder
f65e3e812d
u02: Implement sorting for 3 points
2023-05-09 22:59:38 +02:00
Simon Bruder
e7186ab0ce
u02: Implement barycentric coordinates
2023-05-09 22:59:38 +02:00
Simon Bruder
1b3226c65d
u02/tool_base: Add draw with three points
2023-05-09 22:59:38 +02:00
Simon Bruder
b63005ac50
u02/tool_base: Add draw with no point
2023-05-09 22:59:38 +02:00
Simon Bruder
0faa2eee98
u02/tests: Add link to desmos for circle
2023-05-09 22:59:38 +02:00
Simon Bruder
eba872dae5
u02: Implement bresenham circle tool
2023-05-09 22:59:37 +02:00
Simon Bruder
b372f1b5fb
flake.{nix,lock}: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/cd749f58ba83f7155b7062dd49d08e5e47e44d50' (2023-04-17)
→ 'github:nixos/nixpkgs/897876e4c484f1e8f92009fd11b7d988a121a4e7' (2023-05-06)
2023-05-09 22:59:37 +02:00
Simon Bruder
87bfafb50a
u02/tests: Use const where possible
2023-05-09 22:59:37 +02:00
Simon Bruder
2b7007a3c2
u02: Implement rectangle tool
2023-05-09 22:59:37 +02:00
Simon Bruder
f3d8dba49f
u02: Replace fill test to use test shape
2023-05-09 22:59:37 +02:00
Simon Bruder
50e5e413f3
u02: Add property test for equality of fill tools
2023-05-09 22:59:37 +02:00
Simon Bruder
be7faa1834
u02: Implement non recursive fill tool
2023-05-09 22:59:37 +02:00
Simon Bruder
034442a5c6
u02: Implement recursive fill tool
2023-05-09 22:59:37 +02:00
Simon Bruder
d62a50d0f7
u02: Implement bresenham line tool
2023-05-09 22:59:37 +02:00
Simon Bruder
818cbe7907
u02: Improve test performance
2023-05-09 22:59:37 +02:00
Simon Bruder
9a0c4e5d2b
u02: Make DDA incremental
2023-05-09 22:59:37 +02:00
Simon Bruder
ffc5ab7b6b
u02: Implement DDA line tool
2023-05-09 22:59:37 +02:00
Simon Bruder
ade4ab82d0
u02: Implement transformation to standard case
2023-05-09 22:59:37 +02:00
Simon Bruder
6afdc3c9d7
u02: Implement transformation functions
2023-05-09 22:59:36 +02:00
Simon Bruder
0c39c72184
u02/CMake: Install built binary
2023-05-09 22:59:20 +02:00
Simon Bruder
0d2ca03fdd
u02/CMake: Add vim modeline
2023-05-09 22:53:24 +02:00
Simon Bruder
0545814689
u02: Convert latin1 to UTF-8
2023-05-09 22:53:24 +02:00
Simon Bruder
1b6c442846
u02: dos2unix
2023-05-09 22:53:24 +02:00
Simon Bruder
62bffa835c
u02: Format
2023-05-09 22:53:24 +02:00
Simon Bruder
9b9d8f84b1
u02: Add skeleton
2023-05-09 22:53:24 +02:00
Simon Bruder
4a762d4b4c
u01: Accept reference for node::set_name
...
This harmonizes the signatures of set_name and the constructor.
2023-05-01 13:13:47 +02:00
Simon Bruder
9c036f2909
u01: Add test case for very short loop
...
This actually worked, but it is nice to have it verified nonetheless.
2023-04-24 14:33:45 +02:00
Simon Bruder
0ee62d9a62
u01: Fix typo in comment
2023-04-24 14:24:09 +02:00
Simon Bruder
fa279ba3aa
u01: Don’t call make_pair explicitly
2023-04-24 14:22:11 +02:00
Simon Bruder
67bc8355f7
u01: Fix type of children count in one case
2023-04-24 14:14:28 +02:00
Simon Bruder
919349c027
u01/tests: Fix typo
2023-04-24 14:11:29 +02:00
Simon Bruder
b7694639b6
u01: Consistently use size_t and unsigned int
...
size_t should only be used for indexing. For all other purposes,
unsigned int should be used.
2023-04-22 15:22:18 +02:00
Simon Bruder
9b7f4fac4a
Add note on compile_commands.json to readme
2023-04-22 15:14:05 +02:00
Simon Bruder
1cf9cf7a16
Add global readme
2023-04-22 15:04:45 +02:00
Simon Bruder
403c143ea3
Licence under GPL v3 or later
2023-04-22 15:04:45 +02:00
Simon Bruder
beca750fe6
u01: Add readme
2023-04-22 15:04:45 +02:00
Simon Bruder
20dcbb505b
u01: Allow both static and dynamic linking
...
This uses CMake’s BUILD_SHARED_LIBS variable, which by default is set to
OFF. To build the shared library and link the binaries against it, you
can set it to ON.
2023-04-22 14:35:21 +02:00
Simon Bruder
71ad2f80cd
u01: Change project name
...
The task requires this.
2023-04-22 14:35:11 +02:00
Simon Bruder
51ce26359f
u01: Change name of library
...
The task requires this name.
2023-04-22 14:35:10 +02:00