Function extendFromA

Returns a line extended from its a point by a specified distance

import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
const line = {a: {x: 0, y:0}, b: {x:10, y:10} }
const extended = Lines.extendFromA(line, 2);
  • Parameters

    • line: Line
    • distance: number

    Returns Line

    Newly extended line