operator * method
Returns a new vector or matrix by multiplying this with arg
.
Implementation
dynamic operator *(dynamic arg) {
if (arg is double) {
return scaled(arg);
}
if (arg is Vector4) {
return transformed(arg);
}
if (arg is Vector3) {
return transformed3(arg);
}
if (arg is Matrix4) {
return multiplied(arg);
}
throw new ArgumentError(arg);
}