MCPcopy Create free account
hub / github.com/blend2d/blend2d / open_line_to

Function open_line_to

blend2d/core/pathstroke.cpp:536–552  ·  view source on GitHub ↗

Opens a new figure with a line segment starting from the current point and ending at `p1`. The `n1` is a normal calculated from a unit vector of `p1 - _p0`. This function can only be called after we have at least two vertices that form the line. These vertices cannot be a single point as that would mean that we cannot calculate unit vector and then normal for the offset. This must be handled befo

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

strokeFunction · 0.85
smooth_poly_toFunction · 0.85

Calls 4

is_openFunction · 0.85
dFunction · 0.85
move_toMethod · 0.45
line_toMethod · 0.45

Tested by

no test coverage detected