Skip to main content
Module

x/targadactyl/deps.ts>ContourMeasure

tga.js implemented in Deno
Latest
interface ContourMeasure
import { type ContourMeasure } from "https://deno.land/x/targadactyl@1.2.0/deps.ts";

Methods

getPosTan(distance: number, output?: PosTan): PosTan

Returns the given position and tangent line for the distance on the given contour. The return value is 4 floats in this order: posX, posY, vecX, vecY.

getSegment(
startD: number,
stopD: number,
startWithMoveTo: boolean,
): Path

Returns an Path representing the segement of this contour.

isClosed(): boolean

Returns true if the contour is closed.

length(): number

Returns the length of this contour.