Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/extras/core/Path.d.ts>Path

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Path
extends CurvePath<Vector2>
import { Path } from "https://deno.land/x/threejs_4_deno@v121/src/extras/core/Path.d.ts";

a 2d path representation, comprising of points, lines, and cubes, similar to the html5 2d canvas api. It extends CurvePath.

Constructors

new
Path(points?: Vector2[])

Properties

currentPoint: Vector2
type: string

Methods

absarc(
aX: number,
aY: number,
aRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
): this
absellipse(
aX: number,
aY: number,
xRadius: number,
yRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
aRotation: number,
): this
arc(
aX: number,
aY: number,
aRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
): this
bezierCurveTo(
aCP1x: number,
aCP1y: number,
aCP2x: number,
aCP2y: number,
aX: number,
aY: number,
): this
ellipse(
aX: number,
aY: number,
xRadius: number,
yRadius: number,
aStartAngle: number,
aEndAngle: number,
aClockwise: boolean,
aRotation: number,
): this
deprecated
fromPoints(vectors: Vector2[]): this
lineTo(x: number, y: number): this
moveTo(x: number, y: number): this
quadraticCurveTo(
aCPx: number,
aCPy: number,
aX: number,
aY: number,
): this
setFromPoints(vectors: Vector2[]): this
splineThru(pts: Vector2[]): this