Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
This repository was archived by the owner on May 6, 2024. It is now read-only.

Bug on Quaternion::LookAt() #50

@OttoX

Description

@OttoX

use default handedness: LH
testcase:


Vector<float, 3> dir(0.615524292f,0,-1.49077988f);
dir.Normalize();

Vector<float, 3> up(0,1,0);
Quaternion<float> q = Quaternion<float>::LookAt(dir, up);

output q, the result is wrong:
q = (-0.194535, 0.000000, 0.980896, 0.000000);

right answer should be:
q = (0.194535, 0.000000, 0.980896, 0.000000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions