evanw / evanw/lightgl.js

vector.js same phi for two different vectors

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Copied from console:
a=new Vector(1,-1)
Vector {x: 1, y: -1, z: 0, negative: function, add: function…}
a.toAngles().phi
-0.7853981633974482
b=new Vector(-1,-1)
Vector {x: -1, y: -1, z: 0, negative: function, add: function…}
b.toAngles().phi
-0.7853981633974482

Equal case is for a=new Vector(-1,1) and a=new Vector(1,1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.