setPosition method

Matrix4 setPosition(
  1. dynamic x, [
  2. dynamic y,
  3. dynamic z
])

Implementation

Matrix4 setPosition(x, [y, z]) {
  var te = elements;

  if (x is Vector3) {
    print("warn use setPositionFromVector3 ........... ");
    return setPositionFromVector3(x);
  } else {
    te[12] = x.toDouble();
    te[13] = y.toDouble();
    te[14] = z.toDouble();
  }

  return this;
}