Help Contents / Graphics / Turtle Motion Queries / DistanceXYZ

DistanceXYZdist DistanceXYZ pos 

Outputs a number, the distance the turtle must travel along a straight line to reach the xyz position given as the argument. 

This command is designed to run in perspective mode. 

Example: 

	show towardsxyz [0 100 0]		;100 
	show towardsxyz [100 100 100]		;173.205080756888 
	setorientation towardsxyz [100 100 100] 
	fd distancexyz [100 100 100] 


previous: Distance	next: Pixel
