Iosevka/support/point.ptl
2016-02-04 07:32:04 +08:00

14 lines
396 B
Plaintext

export all : class Point
public [new x y onCurve cubic subdivided] : begin
this.x = x
this.y = y
this.onCurve = onCurve || false
this.subdivided = subdivided || false
this.cubic = cubic || false
static [transformed tfm x y onCurve cubic subdivided] : new Point
* x * tfm.xx + y * tfm.yx + tfm.x
* x * tfm.xy + y * tfm.yy + tfm.y
* onCurve
* cubic
* subdivided