I know how to find the middle of two given points:
var midpoint = (pointA + pointB)/2;
where pointA
and pointB
are Vector2
I thought that
var thirdBtnPoints = (pointA + pointB)/3;
var twoThirdBtnPoints = 2*(pointA + pointB)/3;
should give me 1/3 and 2/3 between the two points but it doesn't. I guess this might be more of a math question though, but how can I find 1/3 and 2/3 of the distance between two given points?