Skip to main content

LineSegment

class LineSegment extends Segment

Constructors

constructor

public override new LineSegmentfrom: Vector2to: Vector2: LineSegment

Parameters

Overwrites Segment.constructor

Properties

from

readonly public from: Vector2

points

readonly public points: Vector2[]

to

readonly public to: Vector2

Accessors

arcLength

public get override arcLength(): number
Overwrites Segment.arcLength

Methods

draw

public override drawcontext: CanvasRenderingContext2DPath2Dstart: number = 0end: number = 1move: boolean = false: CurvePointCurvePoint

Parameters

Overwrites Segment.draw

getPoint

public override getPointdistance: number: CurvePoint

Parameters

Overwrites Segment.getPoint