Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Bug-1 Algorithm question [modified]

Bug-1 Algorithm question [modified]

Scheduled Pinned Locked Moved Algorithms
questionalgorithmshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alivemau5
    wrote on last edited by
    #1

    Hi, Is it possible to use Bug-1 algorithm without knowing the distance to the target ? In every place (a matrix) I just know the way to this (N, NE, E, SE..), but not the distance.

    modified on Tuesday, November 3, 2009 5:00 PM

    N 1 Reply Last reply
    0
    • A Alivemau5

      Hi, Is it possible to use Bug-1 algorithm without knowing the distance to the target ? In every place (a matrix) I just know the way to this (N, NE, E, SE..), but not the distance.

      modified on Tuesday, November 3, 2009 5:00 PM

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      If you now the direction from two points and the distance between them, then it's pretty simple trig to work out the distance to the third; Triangulation[^]


      Panic, Chaos, Destruction. My work here is done.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups