❓ Square Root Vector.

Posts 1–2 of 2 · Page 1 of 1
❓ Square Root Vector.
I'm new to making an aimbot so I just want to modify fleep's tuts then advance on it. I've changed it so far so that it uses Vector's but I'm not sure how to square root the Vectors? How would I go about this?

Code:
	Vector Get3dDist(Vector myCoordsL, Vector emnCoords) {

		return 
			sqrt(pow(double(emnCoords.x - myCoordsL.x), 2.0) + pow(double(emnCoords.y - myCoordsL.y), 2.0) + pow(double(emnCoords.z - myCoordsL.z), 2.0));

	}
- - - Updated - - -
@Hunter, Close please. It needs to be float Get3dDist not Vector :P
/Solved & closed.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us