| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/3dweb/src/extras/core/ |
Upload File : |
import { Vector2 } from './../../math/Vector2';
import { CurvePath } from './CurvePath';
/**
* a 2d path representation, comprising of points, lines, and cubes, similar to the html5 2d canvas api. It extends CurvePath.
*/
export class Path extends CurvePath<Vector2> {
constructor( points?: Vector2[] );
currentPoint: Vector2;
/**
* @deprecated Use {@link Path#setFromPoints .setFromPoints()} instead.
*/
fromPoints( vectors: Vector2[] ): this;
setFromPoints( vectors: Vector2[] ): this;
moveTo( x: number, y: number ): this;
lineTo( x: number, y: number ): this;
quadraticCurveTo( aCPx: number, aCPy: number, aX: number, aY: number ): this;
bezierCurveTo(
aCP1x: number,
aCP1y: number,
aCP2x: number,
aCP2y: number,
aX: number,
aY: number
): this;
splineThru( pts: Vector2[] ): this;
arc(
aX: number,
aY: number,
aRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean
): this;
absarc(
aX: number,
aY: number,
aRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean
): this;
ellipse(
aX: number,
aY: number,
xRadius: number,
yRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
aRotation: number
): this;
absellipse(
aX: number,
aY: number,
xRadius: number,
yRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
aRotation: number
): this;
}