Skip to content

Commit

Permalink
math: fix lerp reference
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Sep 10, 2023
1 parent fe517f3 commit 77b95aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/vec.zig
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub fn Vec(comptime n_value: usize, comptime Scalar: type) type {
/// a.lerp(b, 1.0) == b
/// ```
pub inline fn lerp(a: *const VecN, b: *const VecN, amount: Scalar) VecN {
return a.mulScalar(1.0 - amount).add(b.mulScalar(amount));
return a.mulScalar(1.0 - amount).add(&b.mulScalar(amount));
}

/// Calculates the dot product between vector a and b and returns scalar.
Expand Down

0 comments on commit 77b95aa

Please sign in to comment.