Constructors
constructor
- new Line(ix: number, iy: number, ia: number): Line
Parameters
- ix: number
- iy: number
- ia: number
Properties
Methods
angleOrig
- angleOrig(): number
Returns number
distanceOrig
- distanceOrig(): number
Returns number
distanceToPoint
- distanceToPoint(ic: Point): number
Returns number
draw
- draw(
ctx: CanvasRenderingContext2D,
cAdjust: tCanvasAdjust,
color?: string,
): void Parameters
- ctx: CanvasRenderingContext2D
- cAdjust: tCanvasAdjust
- color: string = colors.line
Returns void
getAxisXIntersection
- getAxisXIntersection(): number
Returns number
getAxisXIntersecTri
- getAxisXIntersecTri(): number
Returns number
getAxisYIntersection
- getAxisYIntersection(): number
Returns number
getAxisYIntersecTri
- getAxisYIntersecTri(): number
Returns number
isEqual
- isEqual(il: Line): boolean
Returns boolean
isOrthogonal
- isOrthogonal(il: Line): boolean
Returns boolean
isParallel
- isParallel(il: Line): boolean
Returns boolean
lineParallelDistance
- lineParallelDistance(iDist: number, ipMagnet: Point, ipMagnet2: Point): Line
rotateOrig
- rotateOrig(ia: number): Line
scaleOrig
- scaleOrig(ir: number): Line
translate
- translate(ix: number, iy: number): Line