Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Arguments to atan2 are reversed #127

@aletheos

Description

@aletheos

hump/vector.lua

Line 118 in 08937cc

return new(atan2(self.x, self.y), self:len())

Typically the arguments to atan2 are y first, and that is how it's done in the corresponding function in vector-light, so I assume this is a mistake.

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