If point A is the origin of your globe, and point B is the plotted point:

B-A will give you a vector pointing the direction you want from the origin.
 Scale this vector (multiply by a scalar > 1) and add back to the origin (A)
to get a new point farther away.

e.g. (untested code):

import flash.geom.Vector3D;

var FAR_AWAY_DISTANCE:int = 1000;

var globeOrigin:Vector3D(100,100);  // origin of globe
var globePoint:Vector3D(150,200);   // plotted point on globe

var direction:Vector3D = globeOrigin.subtract(globePoint);  // direction =
plotted point - origin

direction.normalize();  // unit vector pointing the direction we want
direction.scaleBy(FAR_AWAY_DISTANCE);

var newFarAwayPoint:Vector3D = origin.add(direction);


HTH,
-Ken


On Tue, Mar 23, 2010 at 7:55 PM, dyc <[email protected]> wrote:

> Hello!
>
> I currently have 2 x,y,z positions, and I want to figure out how to
> determine a spot WAY further away, but continuing along the path those
> two positions make with eachother.
>
> Im basically plotting positions on a globe, and I want these plotted
> dots to float away from the globe in relation to the center point of
> the globe and the plotted spot.
>
> Any ideas?
>
> Thanks so much! ==)
>
> To unsubscribe from this group, send email to away3d-dev+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

To unsubscribe from this group, send email to 
away3d-dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to