1
$\begingroup$

So I am trying to find a vector a certain distance away from another point ( the distance varies based on an input ) and I've figured out that

distance^2=(newPoint-centerPoint):Dot(newPoint-centerPoint)

Where newPoint is what I'm looking for and centerPoint is what I have. I don't know where to go from there to further solve for newPoint and I also know that there's many possible answers, is there a way to make it pick just one of those? Sorry if this is a fairly simple question, my highest level of math education is geometry.

  • 0
    You know how to add a vector to a point, right? Then, pick a unit vector unitVector at your convenience and set (nextPoint)=(centerPoint)+(distance).(unitVector).2011-07-09
  • 0
    If the question is about how to generate unitVector, pick n independent standard real Gaussian gaussReal(k), make them into a vector gaussVector=[gaussReal(k),k=1..n], compute the real number gaussLength defined by gaussLength^2=sum[gaussReal(k)^2,k=1..n] and set unitVector=(gaussLength)^{-1}.gaussVector.2011-07-09
  • 0
    @Didier Piau thanks that worked! I know how to get the unit vector, but I truly have no idea what they are.2011-07-10

2 Answers 2