Hello, this is more of a math question I guess, but I have two 3D vectors and I've managed to calculate the distance between them. How can I use this to get all the points between using steps?
this is what I have so far
public List<Vec> getPointsBetween(Vec start, Vec end) {
double diffX = end.xCoord - start.xCoord;
double diffY = end.yCoord - start.yCoord;
double diffZ = end.zCoord - start.zCoord;
double distance = Math.sqrt(diffX * diffX + diffY * diffY + diffZ * diffZ);
List<Vec> points = new ArrayList();
while(distance >= 0.0) {
}
}