ixfx
    Preparing search index...

    Function fromNumbers

    • Returns a line from a basis of coordinates (x1, y1, x2, y2)

      import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'
      // Line from 0,1 -> 10,15
      Lines.fromNumbers(0, 1, 10, 15);

      Parameters

      • x1: number
      • y1: number
      • x2: number
      • y2: number

      Returns Geometry.Line