Skip to content

Rotations are not totally accurate (due to floating point math, require rounding) #23

@dan-tilley

Description

@dan-tilley

// As per documentation, the following
var vec = new Victor(100, 0);
vec.rotateBy(Math.PI / 2);
vec.toString();
// => "x:6.123233995736766e-15, y:100"

x should be zero

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