leftTranslate method
- @Deprecated('Use leftTranslateByVector3, leftTranslateByVector4, ' 'or leftTranslateByDouble instead')
Multiply this by a translation from the left.
The translation can be specified with a Vector3, Vector4, or x, y, z as doubles.
If you know the argument types in a call site, prefer leftTranslateByDouble, leftTranslateByVector3, or leftTranslateByVector4 for performance.
Implementation
@pragma('wasm:prefer-inline')
@pragma('vm:prefer-inline')
@pragma('dart2js:prefer-inline')
@Deprecated('Use leftTranslateByVector3, leftTranslateByVector4, '
'or leftTranslateByDouble instead')
void leftTranslate(dynamic x, [double y = 0.0, double z = 0.0]) {
if (x is Vector3) {
leftTranslateByVector3(x);
} else if (x is Vector4) {
leftTranslateByVector4(x);
} else if (x is double) {
leftTranslateByDouble(x, y, z, 1.0);
} else {
throw UnimplementedError();
}
}