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