Skip to content

bug sb7code/include/vmath.h  #50

@Aha-hub

Description

@Aha-hub

Lines 1298 and 1304 of vmath.h have a bug in the implementation of mix(). According to the definition of linear interpolation, the code implementation seems to be should be

template <typename T>
static inline T mix(const T& A, const T& B, typename T::element_type t)
{
    return A + t * (B - A);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions