scaleByVector3 method

void scaleByVector3(
  1. Vector3 scale
)

Multiplies this by a scale matrix of scale. Note the order.

Implementation

void scaleByVector3(Vector3 scale) {
  final storage = _storage;
  final sx = scale.x, sy = scale.y, sz = scale.z;
  // dart format off
  storage[0] *= sx; storage[4] *= sy; storage[8]  *= sz;
  storage[1] *= sx; storage[5] *= sy; storage[9]  *= sz;
  storage[2] *= sx; storage[6] *= sy; storage[10] *= sz;
  storage[3] *= sx; storage[7] *= sy; storage[11] *= sz;
  // dart format on
}