Options
All
  • Public
  • Public/Protected
  • All
Menu

Module geom

Index

Functions

ConvexHull

LLtangent_PolyPolyC

  • LLtangent_PolyPolyC(V: Point[], W: Point[]): object
  • Parameters

    Returns object

    • t1: number
    • t2: number

LRtangent_PolyPolyC

  • LRtangent_PolyPolyC(V: Point[], W: Point[]): object
  • Parameters

    Returns object

    • t1: number
    • t2: number

Ltangent_PointPolyC

  • Ltangent_PointPolyC(P: Point, V: Point[]): number
  • Parameters

    Returns number

RLtangent_PolyPolyC

  • RLtangent_PolyPolyC(V: Point[], W: Point[]): object
  • Parameters

    Returns object

    • t1: number
    • t2: number

RRtangent_PolyPolyC

  • RRtangent_PolyPolyC(V: Point[], W: Point[]): object
  • Parameters

    Returns object

    • t1: number
    • t2: number

Rtangent_PointPolyC

  • Rtangent_PointPolyC(P: Point, V: Point[]): number
  • Parameters

    Returns number

above

  • Parameters

    Returns boolean

below

  • Parameters

    Returns boolean

clockwiseRadialSweep

  • clockwiseRadialSweep(p: Point, P: Point[], f: function): void
  • Parameters

    • p: Point
    • P: Point[]
    • f: function
        • (Point: any): void
        • Parameters

          • Point: any

          Returns void

    Returns void

intersects

  • Parameters

    Returns Array<any>

isAnyPInQ

  • Parameters

    Returns boolean

isLeft

  • tests if a point is Left|On|Right of an infinite line.

    Parameters

    Returns number

    0 for P2 left of the line through P0 and P1 =0 for P2 on the line <0 for P2 right of the line

isPointInsidePoly

  • isPointInsidePoly(p: Point, poly: Point[]): boolean
  • Parameters

    Returns boolean

nextPolyPoint

polysOverlap

  • Parameters

    Returns boolean

prevPolyPoint

tangent_PointPolyC

  • tangent_PointPolyC(P: Point, V: Point[]): object
  • Parameters

    Returns object

    • ltan: number
    • rtan: number

tangent_PolyPolyC

  • tangent_PolyPolyC(V: Point[], W: Point[], t1: function, t2: function, cmp1: function, cmp2: function): object
  • Parameters

    • V: Point[]
    • W: Point[]
    • t1: function
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    • t2: function
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    • cmp1: function
        • (a: any, b: any, c: any): boolean
        • Parameters

          • a: any
          • b: any
          • c: any

          Returns boolean

    • cmp2: function
        • (a: any, b: any, c: any): boolean
        • Parameters

          • a: any
          • b: any
          • c: any

          Returns boolean

    Returns object

    • t1: number
    • t2: number

tangents

Generated using TypeDoc