scale method
Scale this matrix by a Vector3, Vector4, or x,y,z as doubles.
If you know the argument types in a call site, prefer scaleByDouble, scaleByVector3, or scaleByVector4 for performance.
Implementation
@pragma('wasm:prefer-inline')
@pragma('vm:prefer-inline')
@pragma('dart2js:prefer-inline')
@Deprecated('Use scaleByVector3, scaleByVector4, or scaleByDouble instead')
void scale(dynamic x, [double? y, double? z]) {
if (x is Vector3) {
scaleByVector3(x);
} else if (x is Vector4) {
scaleByVector4(x);
} else if (x is double) {
scaleByDouble(x, y ?? x, z ?? x, 1.0);
} else {
throw UnimplementedError();
}
}