dist/claygl.es.js
function (matrix) {
        Vector3.add(this.direction, this.direction, this.origin);
        Vector3.transformMat4(this.origin, this.origin, matrix);
        Vector3.transformMat4(this.direction, this.direction, matrix);

        Vector3.sub(this.direction, this.direction, this.origin);
        Vector3.normalize(this.direction, this.direction);
    }
function (matrix) {
        Vector3.add(this.direction, this.direction, this.origin);
        Vector3.transformMat4(this.origin, this.origin, matrix);
        Vector3.transformMat4(this.direction, this.direction, matrix);

        Vector3.sub(this.direction, this.direction, this.origin);
        Vector3.normalize(this.direction, this.direction);
    }
function ( matrix ) { Vector3 . add ( this . direction , this . direction , this . origin ) ; Vector3 . transformMat4 ( this . origin , this . origin , matrix ) ; Vector3 . transformMat4 ( this . direction , this . direction , matrix ) ; Vector3 . sub ( this . direction , this . direction , this . origin ) ; Vector3 . normalize ( this . direction , this . direction ) ; }
Apply an affine transform matrix to the ray
@return {clay.Matrix4} matrix
Apply an affine transform matrix to the ray