Skip to content

Commit 674328e

Browse files
committed
renamed line_cap::butt to line_cap::none. It's clearer and will help me avoid accidental infamy/notoriety.
1 parent d75b55f commit 674328e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/line-cap.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
\begin{codeblock}
1515
namespace std { namespace experimental { namespace io2d { inline namespace v1 {
1616
enum class line_cap {
17-
butt,
17+
none,
1818
round,
1919
square
2020
};
@@ -36,7 +36,7 @@
3636
& \rhdr{Meaning}
3737
\\ \capsep
3838
\endhead
39-
\tcode{butt}
39+
\tcode{none}
4040
& The line has no cap. It terminates exactly at the end \tcode{point}.
4141
\\
4242
\tcode{round}

source/surface.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
\pnum
268268
After all paths in the path group have been rendered but before the rendered result is composed to the \underlyingsurface, the rendered result shall be transformed from the User Coordinate Space (\ref{surface.coordinatespaces}) to the Surface Coordinate Space (\ref{surface.coordinatespaces}).
269269
\enterexample
270-
If an open path consisting solely of a vertical line from \tcode{vector_2d(20.0, 20.0)} to \tcode{vector_2d(20.0, 60.0)} is to be composed to the \underlyingsurface, the Line Cap is \tcode{line_cap::butt}, the Line Width is \tcode{12.0}, and the Transformation Matrix is \tcode{matrix_2d::init_scale(0.5, 1.0)}, then the line will end up being composed within the area \tcode{rectangle( \{ 7.0, 20.0 \}, \{ 13.0, 60.0 \} )} on the \underlyingsurface. The Transformation Matrix causes the center of the \xaxis of the line to move from \tcode{20.0} to \tcode{10.0} and then causes the horizontal width of the line to be reduced from \tcode{12.0} to \tcode{6.0}.
270+
If an open path consisting solely of a vertical line from \tcode{vector_2d(20.0, 20.0)} to \tcode{vector_2d(20.0, 60.0)} is to be composed to the \underlyingsurface, the Line Cap is \tcode{line_cap::none}, the Line Width is \tcode{12.0}, and the Transformation Matrix is \tcode{matrix_2d::init_scale(0.5, 1.0)}, then the line will end up being composed within the area \tcode{rectangle( \{ 7.0, 20.0 \}, \{ 13.0, 60.0 \} )} on the \underlyingsurface. The Transformation Matrix causes the center of the \xaxis of the line to move from \tcode{20.0} to \tcode{10.0} and then causes the horizontal width of the line to be reduced from \tcode{12.0} to \tcode{6.0}.
271271
\exitexample
272272

273273
\rSec1 [surface.masking] {\tcode{surface} masking}

0 commit comments

Comments
 (0)