Skip to content

@ue-too/curve / index / ControlPoint

類別: ControlPoint

定義於: packages/curve/src/composite-curve.ts:22

Control point with left and right handles for composite Bezier curves.

建構函式

建構函式

new ControlPoint(position, leftHandle, rightHandle): ControlPoint

定義於: packages/curve/src/composite-curve.ts:27

參數

position

Point

leftHandle

HandlePoint

rightHandle

HandlePoint

回傳

ControlPoint

方法

getLeftHandle()

getLeftHandle(): HandlePoint

定義於: packages/curve/src/composite-curve.ts:345

回傳

HandlePoint


getPosition()

getPosition(): Point

定義於: packages/curve/src/composite-curve.ts:149

回傳

Point


getRightHandle()

getRightHandle(): HandlePoint

定義於: packages/curve/src/composite-curve.ts:349

回傳

HandlePoint


setLeftHandlePosition()

setLeftHandlePosition(destPos): void

定義於: packages/curve/src/composite-curve.ts:249

參數

destPos

Point

回傳

void


setLeftHandleTypeAligned()

setLeftHandleTypeAligned(): void

定義於: packages/curve/src/composite-curve.ts:179

回傳

void


setLeftHandleTypeFree()

setLeftHandleTypeFree(): void

定義於: packages/curve/src/composite-curve.ts:197

回傳

void


setLeftHandleTypeVector()

setLeftHandleTypeVector(prevControlPoint): void

定義於: packages/curve/src/composite-curve.ts:153

參數

prevControlPoint

ControlPoint | undefined

回傳

void


setPosition()

setPosition(destinationPosition, prevControlPoint, nextControlPoint): void

定義於: packages/curve/src/composite-curve.ts:37

參數

destinationPosition

Point

prevControlPoint

ControlPoint | undefined

nextControlPoint

ControlPoint | undefined

回傳

void


setRightHandlePosition()

setRightHandlePosition(destPos): void

定義於: packages/curve/src/composite-curve.ts:297

參數

destPos

Point

回傳

void


setRightHandleTypeAligned()

setRightHandleTypeAligned(): void

定義於: packages/curve/src/composite-curve.ts:227

回傳

void


setRightHandleTypeFree()

setRightHandleTypeFree(): void

定義於: packages/curve/src/composite-curve.ts:245

回傳

void


setRightHandleTypeVector()

setRightHandleTypeVector(nextControlPoint): void

定義於: packages/curve/src/composite-curve.ts:201

參數

nextControlPoint

ControlPoint | undefined

回傳

void