Skip to content

vector3f cross error #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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