Skip to content

vector3f cross error #2

@WeiZhenOoooo

Description

@WeiZhenOoooo

First, thank you for your work, but I found a logical error. In calculating the vector product using vector3f, your formula is:
inline vector3f cross(vector3f const & v1, vector3f const & v2)
{
return {v1.y * v2.z - v1.z * v2.y, v1.z * v2.x - v1.x * v2.z, v1.x * v2.y - v1.y * v2.z};
}
The actual formula is:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions