src/math/transform.js
function Transform( vect, angle, origin ) {

        if (!(this instanceof Transform)){
            return new Transform( vect, angle );
        }

        this.v = new Physics.vector();
        this.o = new Physics.vector(); // origin of rotation
        
        if ( vect instanceof Transform ){

            this.clone( vect );
            return;
        }

        if (vect){
            this.setTranslation( vect );
        }

        this.setRotation( angle || 0, origin );
    }
function Transform( vect, angle, origin ) {

        if (!(this instanceof Transform)){
            return new Transform( vect, angle );
        }

        this.v = new Physics.vector();
        this.o = new Physics.vector(); // origin of rotation
        
        if ( vect instanceof Transform ){

            this.clone( vect );
            return;
        }

        if (vect){
            this.setTranslation( vect );
        }

        this.setRotation( angle || 0, origin );
    }
function Transform ( vect , angle , origin ) { if ( ! ( this instanceof Transform ) ) { return new Transform ( vect , angle ) ; } this . v = new Physics . vector ( ) ; this . o = new Physics . vector ( ) ; // origin of rotation if ( vect instanceof Transform ) { this . clone ( vect ) ; return ; } if ( vect ) { this . setTranslation ( vect ) ; } this . setRotation ( angle || 0 , origin ) ; }
class Physics.transform

Vector Transformations class for rotating and translating vectors
 
new Physics.transform( [vect, angle, origin] )
new Physics.transform( transform )
- vect (Vectorish): Translation vector
- transform (Physics.transform): Transform to copy
- angle (Number): Angle (radians) to use for rotation
- origin (Vectorish): Origin of the rotation

Transform Constructor / Factory
class Physics . transform