Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cxx/helper_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,16 +874,16 @@ inline __host__ __device__ uint4 max(uint4 a, uint4 b) {
// - linear interpolation between a and b, based on value t in [0, 1] range
////////////////////////////////////////////////////////////////////////////////

inline __device__ __host__ float lerp(float a, float b, float t) {
inline __device__ __host__ float mc_lerp(float a, float b, float t) {
return a + t * (b - a);
}
inline __device__ __host__ float2 lerp(float2 a, float2 b, float t) {
inline __device__ __host__ float2 mc_lerp(float2 a, float2 b, float t) {
return a + t * (b - a);
}
inline __device__ __host__ float3 lerp(float3 a, float3 b, float t) {
inline __device__ __host__ float3 mc_lerp(float3 a, float3 b, float t) {
return a + t * (b - a);
}
inline __device__ __host__ float4 lerp(float4 a, float4 b, float t) {
inline __device__ __host__ float4 mc_lerp(float4 a, float4 b, float t) {
return a + t * (b - a);
}

Expand Down