Skip to content

Function: computeEnd() ​

ts
function computeEnd(dIn, dOut, isJoin, halfWidth, join, cap, miterLimit): SegmentEnd;

Experimental

Join/cap data at one vertex. dIn is the direction arriving at the vertex, dOut the direction leaving it; both segments sharing the vertex call this with the same arguments.

Parameters ​

ParameterType
dInV2
dOutV2
isJoinboolean
halfWidthnumber
joinLineJoin
capLineCap
miterLimitnumber

Returns ​

SegmentEnd

Released under the MIT License.