<commit_before>#include "saiga/rendering/interpolatedobject3d.h"






void InterpolatedObject3D::interpolate(float alpha)
{
//    interpolatedrot = glm::mix(oldrot,rot,alpha);

    interpolatedrot = glm::slerp(oldrot,rot,alpha);
    interpolatedrot = glm::normalize(interpolatedrot);


    interpolatedscale = glm::mix(oldscale,scale,alpha);
    interpolatedposition = glm::mix(oldposition,position,alpha);

    interpolatedmodel = glm::mat4_cast(interpolatedrot)*glm::scale(mat4(),interpolatedscale);
    interpolatedmodel[3] = vec4(interpolatedposition,1);

}

void InterpolatedObject3D::update()
{
    oldrot = rot;
    oldscale = scale;
    oldposition = position;
}<commit_msg>use trs matrix<commit_after>#include "saiga/rendering/interpolatedobject3d.h"






void InterpolatedObject3D::interpolate(float alpha)
{
//    interpolatedrot = glm::mix(oldrot,rot,alpha);

    interpolatedrot = glm::slerp(oldrot,rot,alpha);
    interpolatedrot = glm::normalize(interpolatedrot);


    interpolatedscale = glm::mix(oldscale,scale,alpha);
    interpolatedposition = glm::mix(oldposition,position,alpha);

    interpolatedmodel = createTRSmatrix(interpolatedposition,interpolatedrot,interpolatedscale);
//    interpolatedmodel = glm::mat4_cast(interpolatedrot)*glm::scale(mat4(),interpolatedscale);
//    interpolatedmodel[3] = vec4(interpolatedposition,1);


}

void InterpolatedObject3D::update()
{
    oldrot = rot;
    oldscale = scale;
    oldposition = position;
}
{'fraction_non_alphanumeric': 0.12661674608577264, 'fraction_numerical': 0.010891763104152484, 'mean_word_length': 6.033492822966507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4027073', 'n_tokens_mistral': 522, 'n_tokens_neox': 503, 'n_words': 58}