lerp method
Implementation
Vector3 lerp(Vector3 to, double weight) {
return Vector3(
x + (to.x - x) * weight,
y + (to.y - y) * weight,
z + (to.z - z) * weight,
);
}
Vector3 lerp(Vector3 to, double weight) {
return Vector3(
x + (to.x - x) * weight,
y + (to.y - y) * weight,
z + (to.z - z) * weight,
);
}