MCPcopy
hub / github.com/tdewolff/canvas / Joiner

Interface Joiner

path_stroke.go:77–79  ·  view source on GitHub ↗

Joiner implements Join, with rhs the right path and lhs the left path to append to, pivot the intersection of both path elements, n0 and n1 the normals at the start and end of the path respectively. The length of n0 and n1 are equal to the halfWidth.

Source from the content-addressed store, hash-verified

75
76// Joiner implements Join, with rhs the right path and lhs the left path to append to, pivot the intersection of both path elements, n0 and n1 the normals at the start and end of the path respectively. The length of n0 and n1 are equal to the halfWidth.
77type Joiner interface {
78 Join(*Path, *Path, float64, Point, Point, Point, float64, float64)
79}
80
81// BevelJoin connects two path elements by a linear join.
82var BevelJoin Joiner = BevelJoiner{}

Callers 8

DrawPreviewFunction · 0.65
latex_bin.goFile · 0.65
ParseLaTeXFunction · 0.65
DashMethod · 0.65
helperParseLaTeXFunction · 0.65
TestPathJoinFunction · 0.65
TestPathMarkersFunction · 0.65
TestPathMarkersAlignedFunction · 0.65

Implementers 5

Pathpath.go
BevelJoinerpath_stroke.go
RoundJoinerpath_stroke.go
MiterJoinerpath_stroke.go
ArcsJoinerpath_stroke.go

Calls

no outgoing calls

Tested by

no test coverage detected