pex-gl / pex-math

Array-based vector, quaternion and matrix math with utils for PEX.
MIT License
14 stars 2 forks source link

Mat4.setRotation3 and Mat4.rotate calculate length twice #4

Closed vorg closed 9 years ago

vorg commented 9 years ago
    var len = Math.sqrt(x * x + y * y + z * z);

    if (Math.sqrt(x * x + y * y + z * z) < 0.0001) {
        return null;
    }