lerpVector3 function
Interpolates between two Vector3.
Implementation
Vector3 lerpVector3(Vector3 a, Vector3 b, double t) {
return Vector3(
a.x + (b.x - a.x) * t,
a.y + (b.y - a.y) * t,
a.z + (b.z - a.z) * t,
);
}
Interpolates between two Vector3.
Vector3 lerpVector3(Vector3 a, Vector3 b, double t) {
return Vector3(
a.x + (b.x - a.x) * t,
a.y + (b.y - a.y) * t,
a.z + (b.z - a.z) * t,
);
}