Skip to content

fontlab_glyport.glyphsapp.geometry · declarations 001

Back to fontlab_glyport.glyphsapp.geometry

addPoints

addPoints(P1, P2)

distance

distance(P1, P2)

Euclidean distance, accepting points, coordinate pairs or nodes.

divideCurve

divideCurve(P0, P1, P2, P3, t)

Split a cubic by De Casteljau; share its middle point in a 7-tuple.

Like the Glyphs 4 wrapper, retain the original endpoints and allow t outside [0, 1] (extrapolation rather than clamping).

pointOnLine

pointOnLine(P0, P1, t)

pointOnQuadratic

pointOnQuadratic(P0, P1, P2, t)

scalePoint

scalePoint(P, scalar)

subtractPoints

subtractPoints(P1, P2)