Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "clip-poly"

Index

Functions

Const clipLinePoly

  • clipLinePoly(a: ReadonlyVec, b: ReadonlyVec, pts: ReadonlyVec[]): undefined | Vec[][]
  • Computes all intersection points of the infinite line defined by a, b with the given polygon. Returns an array of segments where the line is inside the polygon.

    Parameters

    • a: ReadonlyVec
    • b: ReadonlyVec
    • pts: ReadonlyVec[]

    Returns undefined | Vec[][]

Const clipLineSegmentPoly

  • clipLineSegmentPoly(a: ReadonlyVec, b: ReadonlyVec, pts: ReadonlyVec[]): undefined | Vec[][]
  • Parameters

    • a: ReadonlyVec
    • b: ReadonlyVec
    • pts: ReadonlyVec[]

    Returns undefined | Vec[][]

Generated using TypeDoc