Skip to content

@ue-too/curve / index / Path

類別: Path ​

定義於: packages/curve/src/path.ts:53

Path made of sequential line segments.

建構函式 ​

建構函式 ​

new Path(lines): Path

定義於: packages/curve/src/path.ts:56

參數 ​

lines ​

Line[]

回傳 ​

Path

方法 ​

append() ​

append(line): void

定義於: packages/curve/src/path.ts:60

參數 ​

line ​

Line

回傳 ​

void


clear() ​

clear(): void

定義於: packages/curve/src/path.ts:64

回傳 ​

void


getLength() ​

getLength(): number

定義於: packages/curve/src/path.ts:76

回傳 ​

number


getLines() ​

getLines(): Line[]

定義於: packages/curve/src/path.ts:72

回傳 ​

Line[]


getPercentages() ​

getPercentages(): object[]

定義於: packages/curve/src/path.ts:86

回傳 ​

object[]


getPointByPercentage() ​

getPointByPercentage(percentage): Point

定義於: packages/curve/src/path.ts:102

參數 ​

percentage ​

number

回傳 ​

Point


prepend() ​

prepend(line): void

定義於: packages/curve/src/path.ts:68

參數 ​

line ​

Line

回傳 ​

void