threejs-worldgen
    Preparing search index...

    Function segmentsTouch

    • True if segments a→b and c→d touch anywhere (crossing, overlap, or an endpoint within eps of the other).

      Parameters

      • ax: number
      • az: number
      • bx: number
      • bz: number
      • cx: number
      • cz: number
      • dx: number
      • dz: number
      • eps: number = 1e-6

      Returns boolean