transform

Method:

transform - transform a vector

Syntax:

m.transform(vTo, vFrom);

Parameters:

vFrom - vector to be transformed

Returns:

-

Description:

Transform given vector. If two parameters are given, the method transforms the given 'vFrom' vector and assigns the result to 'vTo' (operation doesn't change 'vFrom'). If only one parameter is specified, the paramater acts as both source and target i.e. the result is assigned back to the given vector.

Example:

// define a transformation matrix